From a862ea950eac4119a1d6256d9c12abeecb43b481 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 21 Nov 2002 13:11:33 +0000 Subject: * coff-mcore.c (SWAP_IN_RELOC_OFFSET): Define. (SWAP_OUT_RELOC_OFFSET): Define. --- bfd/ChangeLog | 5 +++++ bfd/coff-mcore.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c4b97ee3d51..c86e62fb118 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-11-21 Alan Modra + + * coff-mcore.c (SWAP_IN_RELOC_OFFSET): Define. + (SWAP_OUT_RELOC_OFFSET): Define. + 2002-11-20 Alexandre Oliva * elf.c (_bfd_elf_link_hash_table_init): Make sure diff --git a/bfd/coff-mcore.c b/bfd/coff-mcore.c index f15102dff1c..783ee57aa36 100644 --- a/bfd/coff-mcore.c +++ b/bfd/coff-mcore.c @@ -577,6 +577,11 @@ coff_mcore_relocate_section (output_bfd, info, input_bfd, input_section, #define SELECT_RELOC(internal, howto) {internal.r_type = howto->type;} +/* 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 + #define COFF_PAGE_SIZE 0x1000 #include "coffcode.h" -- cgit v1.2.1