This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Set xfail on empic for Linux/mips


I'm committing the following, which fixes all the empic testsuite
failures.  The patch effectively restores the old behaviour prior
to my write.c changes, in terms of relocs emitted for difference
expressions.

	* config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
	(TC_FORCE_RELOCATION): Tidy arg.

Index: gas/config/tc-mips.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mips.h,v
retrieving revision 1.16
diff -u -p -r1.16 tc-mips.h
--- gas/config/tc-mips.h	5 Sep 2002 00:01:18 -0000	1.16
+++ gas/config/tc-mips.h	1 Oct 2002 06:01:53 -0000
@@ -136,8 +136,12 @@ extern int mips_fix_adjustable PARAMS ((
 
 /* When generating embedded PIC code we must keep PC relative
    relocations.  */
-#define TC_FORCE_RELOCATION(fixp) mips_force_relocation (fixp)
+#define TC_FORCE_RELOCATION(FIX) mips_force_relocation (FIX)
 extern int mips_force_relocation PARAMS ((struct fix *));
+
+#define TC_FORCE_RELOCATION_SUB_SAME(FIX, SEG)	\
+  (mips_force_relocation (FIX)			\
+   || !SEG_NORMAL (SEG))
 
 /* Register mask variables.  These are set by the MIPS assembly code
    and used by ECOFF and possibly other object file formats.  */

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]