diff options
author | Nick Clifton <nickc@redhat.com> | 2002-03-27 11:28:19 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-03-27 11:28:19 +0000 |
commit | 53369c509b57bc97aa511d7176a3ed238f8a5d47 (patch) | |
tree | fba1f490154f4f86b2f5816b519720eabe77fbaf /bfd | |
parent | 2a1c511a00eee0053606236417075f3e2ed409f0 (diff) | |
download | gdb-53369c509b57bc97aa511d7176a3ed238f8a5d47.tar.gz |
Copy the r_offset field into and out of the internal reloc strcuture.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/coff-arm.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c32ee17d48f..7ed6fe015da 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-03-27 Nick Clifton <nickc@cambridge.redhat.com> + + * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define. + (SWAP_OUT_RELOC_OFFSET): Define. + 2002-03-27 Gregory Steuck <greg@nest.cx> * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for diff --git a/bfd/coff-arm.c b/bfd/coff-arm.c index ca08131d1cb..fd0e0dd15d4 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. */ |