summaryrefslogtreecommitdiff
path: root/bfd/coff-tic54x.c
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
commitcae265f6fa56e314258d28d92e35b9ee4d588aae (patch)
tree2a811bce2a38bc2647be74ea35de34ba9fbbdb6f /bfd/coff-tic54x.c
parente6c369b99b8e769ab2052c5912cfe5ea0ed16ee3 (diff)
downloadbinutils-redhat-cae265f6fa56e314258d28d92e35b9ee4d588aae.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.
Diffstat (limited to 'bfd/coff-tic54x.c')
-rw-r--r--bfd/coff-tic54x.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/bfd/coff-tic54x.c b/bfd/coff-tic54x.c
index 133769cd80..eaf23dacdc 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