aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-11-21 13:11:33 +0000
committerAlan Modra <amodra@gmail.com>2002-11-21 13:11:33 +0000
commitdc12c51f36d7fc8ccdc98a9b266b5ef58668da39 (patch)
tree1141350d80b9acf4b6c2573d7e65cdf9bd6d676a /bfd
parent5f8075fa818246f857f4edc70df880e0cb9203d9 (diff)
downloadfsf-binutils-gdb-dc12c51f36d7fc8ccdc98a9b266b5ef58668da39.zip
fsf-binutils-gdb-dc12c51f36d7fc8ccdc98a9b266b5ef58668da39.tar.gz
fsf-binutils-gdb-dc12c51f36d7fc8ccdc98a9b266b5ef58668da39.tar.bz2
* coff-mcore.c (SWAP_IN_RELOC_OFFSET): Define.
(SWAP_OUT_RELOC_OFFSET): Define.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/coff-mcore.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index c4b97ee..c86e62f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-21 Alan Modra <amodra@bigpond.net.au>
+
+ * coff-mcore.c (SWAP_IN_RELOC_OFFSET): Define.
+ (SWAP_OUT_RELOC_OFFSET): Define.
+
2002-11-20 Alexandre Oliva <aoliva@redhat.com>
* elf.c (_bfd_elf_link_hash_table_init): Make sure
diff --git a/bfd/coff-mcore.c b/bfd/coff-mcore.c
index f15102d..783ee57 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"