mcore testsuite failure

Alan Modra amodra@bigpond.net.au
Thu Nov 21 05:11:00 GMT 2002


Fixes
FAIL: objcopy (simple copy)

bfd/ChangeLog
	* coff-mcore.c (SWAP_IN_RELOC_OFFSET): Define.
	(SWAP_OUT_RELOC_OFFSET): Define.

Index: bfd/coff-mcore.c
===================================================================
RCS file: /cvs/src/src/bfd/coff-mcore.c,v
retrieving revision 1.24
diff -u -p -r1.24 coff-mcore.c
--- bfd/coff-mcore.c	4 Apr 2002 19:53:35 -0000	1.24
+++ bfd/coff-mcore.c	21 Nov 2002 13:08:30 -0000
@@ -577,6 +577,11 @@ coff_mcore_relocate_section (output_bfd,
 
 #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"

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list