summaryrefslogtreecommitdiff
path: root/bfd/coff-arm.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-03-27 11:28:19 +0000
committerNick Clifton <nickc@redhat.com>2002-03-27 11:28:19 +0000
commit2b6e2dfcd54bec0f7c53e96e672a224ea0a7eef0 (patch)
tree5763e322be8192aca2dc487cbfdf95b34ad3d0a1 /bfd/coff-arm.c
parent4737dac3a942f9634ed540f65ea171a0bff0a0a8 (diff)
downloadbinutils-redhat-2b6e2dfcd54bec0f7c53e96e672a224ea0a7eef0.tar.gz
Copy the r_offset field into and out of the internal reloc strcuture.
Diffstat (limited to 'bfd/coff-arm.c')
-rw-r--r--bfd/coff-arm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/coff-arm.c b/bfd/coff-arm.c
index ca08131d1c..fd0e0dd15d 100644
--- a/bfd/coff-arm.c
+++ b/bfd/coff-arm.c
@@ -900,6 +900,11 @@ coff_arm_reloc_type_lookup (abfd, code)
#define BADMAG(x) ARMBADMAG(x)
#define ARM 1 /* Customize coffcode.h */
+/* Make sure that the 'r_offset' field is copied properly
+ so that identical binaries will compare the same. */
+#define SWAP_IN_RELOC_OFFSET H_GET_32
+#define SWAP_OUT_RELOC_OFFSET H_PUT_32
+
/* Extend the coff_link_hash_table structure with a few ARM specific fields.
This allows us to store global data here without actually creating any
global variables, which is a no-no in the BFD world. */