]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
include/coff/
authorAlan Modra <amodra@gmail.com>
Mon, 4 Feb 2013 05:25:41 +0000 (05:25 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 4 Feb 2013 05:25:41 +0000 (05:25 +0000)
* ti.h (SWAP_OUT_RELOC_EXTRA): Define.
bfd/
* coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Delete.
* coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Delete.

bfd/ChangeLog
bfd/coff-tic54x.c
bfd/coff-tic80.c
include/coff/ChangeLog
include/coff/ti.h

index 7614ca0b192f20f75a998701b524f3bb66e343e0..97ee2439f5fc9da9b696cafa86790a24a90516e4 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-04  Alan Modra  <amodra@gmail.com>
+
+       * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Delete.
+       * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Delete.
+
 2013-02-01  Alan Modra  <amodra@gmail.com>
 
        * elf64-ppc.c (dec_dynrel_count): Don't error when elf_gc_sweep_symbol
index 9afba4227034ee7a33ea2c3c72da875eee69cbc8..8efdc20402ca6921a0b24e69d1d03ccc9e250c3a 100644 (file)
@@ -323,15 +323,6 @@ ticoff_bfd_is_local_label_name (bfd *abfd ATTRIBUTE_UNUSED,
 
 #define coff_bfd_is_local_label_name ticoff_bfd_is_local_label_name
 
-/* Clear the r_reserved field in relocs.  */
-#define SWAP_OUT_RELOC_EXTRA(abfd,src,dst) \
-  do \
-    { \
-      dst->r_reserved[0] = 0; \
-      dst->r_reserved[1] = 0; \
-    } \
-  while (0)
-
 /* Customize coffcode.h; the default coff_ functions are set up to use COFF2;
    coff_bad_format_hook uses BADMAG, so set that for COFF2.  The COFF1
    and COFF0 vectors use custom _bad_format_hook procs instead of setting
index 22d4e947b101a6aae270229695ea36fdc60fa820..c8fa5c0674862a5f3fa64cac931e7d9e2ea395a0 100644 (file)
@@ -700,15 +700,6 @@ coff_tic80_relocate_section (bfd *output_bfd,
   return TRUE;
 }
 \f
-/* Clear the r_reserved field in relocs.  */
-#define SWAP_OUT_RELOC_EXTRA(abfd,src,dst) \
-  do \
-    { \
-      dst->r_reserved[0] = 0; \
-      dst->r_reserved[1] = 0; \
-    } \
-  while (0)
-
 #define TIC80COFF 1            /* Customize coffcode.h */
 #undef C_AUTOARG               /* Clashes with TIc80's C_UEXT */
 #undef C_LASTENT               /* Clashes with TIc80's C_STATLAB */
index 11437dd81185e8844d4cb9807d7daa61defcb27d..3311d4eadfb22c59d41868a5e03bb6e481563a9f 100644 (file)
@@ -1,3 +1,7 @@
+2013-02-04  Alan Modra  <amodra@gmail.com>
+
+       * ti.h (SWAP_OUT_RELOC_EXTRA): Define.
+
 2013-01-02  Martin Storsjo <martin@martin.st>
 
        * arm.h (ARMV7PEMAGIC): Define.
index 61010a21086858bf576659b6697213e652719321..d54b2ed191855fa226bf28d1ecf4d151eee8c278 100644 (file)
@@ -546,6 +546,9 @@ struct external_reloc
 #define RELSZ_V0 10                 /* FIXME -- coffcode.h needs fixing */
 #define RELSZ 12                    /* for COFF1/2 */
 
+#define SWAP_OUT_RELOC_EXTRA(abfd, src, dst) \
+  do memset (dst->r_reserved, 0, sizeof (dst->r_reserved)); while (0)
+
 /* various relocation types.  */
 #define R_ABS     0x0000            /* no relocation */
 #define R_REL13   0x002A            /* 13-bit direct reference (???) */