aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-10-01 06:15:33 +0000
committerAlan Modra <amodra@gmail.com>2002-10-01 06:15:33 +0000
commit97724570fe57a08d93c7c61269848e2326cf4efc (patch)
tree908b079bbe1e3e19c9b8bd2a6a73b175346db607 /gas
parentf11b4434cccf41dde09a5227830fc46327b6f083 (diff)
downloadgdb-97724570fe57a08d93c7c61269848e2326cf4efc.zip
gdb-97724570fe57a08d93c7c61269848e2326cf4efc.tar.gz
gdb-97724570fe57a08d93c7c61269848e2326cf4efc.tar.bz2
* config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
(TC_FORCE_RELOCATION): Tidy arg.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-mips.h6
2 files changed, 10 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index ec821c6..155b113 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-01 Alan Modra <amodra@bigpond.net.au>
+
+ * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
+ (TC_FORCE_RELOCATION): Tidy arg.
+
2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
Ken Raeburn <raeburn@cygnus.com>
Aldy Hernandez <aldyh@redhat.com>
diff --git a/gas/config/tc-mips.h b/gas/config/tc-mips.h
index 6b2c3dc..13982a6 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;