summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2005-02-23 16:22:15 +0000
committerH.J. Lu <hjl@lucon.org>2005-02-23 16:22:15 +0000
commitae18e6476a0e60053b589ca95415e7a80fd93d07 (patch)
tree210963b6609e45663a1171e871e5fa113d0ee18f
parentb2157255355b66e03bb8479a2fcfbc46ad233ce3 (diff)
downloadgdb-ae18e6476a0e60053b589ca95415e7a80fd93d07.tar.gz
2005-02-22 H.J. Lu <hongjiu.lu@intel.com>
* coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Defined. * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Likewise.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/coff-tic54x.c9
-rw-r--r--bfd/coff-tic80.c9
3 files changed, 23 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 79587e469d6..34506538d0b 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-23 H.J. Lu <hongjiu.lu@intel.com>
+
+ * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Defined.
+ * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Likewise.
+
2005-02-23 Nick Clifton <nickc@redhat.com>
* elfxx-mips.c (mips_elf_create_dynamic_relocation): Initialise
diff --git a/bfd/coff-tic54x.c b/bfd/coff-tic54x.c
index 133769cd80e..eaf23dacdcd 100644
--- a/bfd/coff-tic54x.c
+++ b/bfd/coff-tic54x.c
@@ -328,6 +328,15 @@ ticoff_bfd_is_local_label_name (abfd, name)
#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
diff --git a/bfd/coff-tic80.c b/bfd/coff-tic80.c
index 30da206f371..499333d3241 100644
--- a/bfd/coff-tic80.c
+++ b/bfd/coff-tic80.c
@@ -714,6 +714,15 @@ coff_tic80_relocate_section (output_bfd, info, input_bfd,
return TRUE;
}
+/* 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 */