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]

[PATCH] MIPS gas: Restore TC_FORCE_RELOCATION_SUB_SAME definition


Hello All,

this fixes some EMBEDDED_PIC testcase breakage resulting from
http://sources.redhat.com/ml/binutils-cvs/2003-01/msg00117.html
and
http://sources.redhat.com/ml/binutils-cvs/2003-02/msg00067.html
where the special MIPS handling got lost.


Thiemo


2003-04-25  Thiemo Seufer <seufer at csv dot ica dot uni-stuttgart dot de>

	/gas/ChangeLog
	* config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.


--- source-orig/gas/config/tc-mips.h	Wed Apr 23 19:15:03 2003
+++ source/gas/config/tc-mips.h	Fri Apr 25 06:11:33 2003
@@ -140,6 +140,9 @@ extern int mips_fix_adjustable PARAMS ((
 #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) \
+  (! SEG_NORMAL (SEG) || mips_force_relocation (FIX))
+
 /* We use this to turn branches to global symbols into branches to
    local symbols, so that they can be simplified.  */
 #define TC_VALIDATE_FIX(fixp, this_segment, skip_label) \


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