From 6700d55a8a67793f332f0a48ddddaf506d8c66fb Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 1 Oct 2002 06:15:33 +0000 Subject: [PATCH] * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define. (TC_FORCE_RELOCATION): Tidy arg. --- gas/ChangeLog | 5 +++++ gas/config/tc-mips.h | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index ec821c65ba..155b113e40 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2002-10-01 Alan Modra + + * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define. + (TC_FORCE_RELOCATION): Tidy arg. + 2002-09-30 Gavin Romig-Koch Ken Raeburn Aldy Hernandez diff --git a/gas/config/tc-mips.h b/gas/config/tc-mips.h index 6b2c3dc06f..13982a6eab 100644 --- a/gas/config/tc-mips.h +++ b/gas/config/tc-mips.h @@ -136,9 +136,13 @@ extern int mips_fix_adjustable PARAMS ((struct fix *)); /* 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. */ extern unsigned long mips_gprmask; -- 2.11.0