]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
authorAlan Modra <amodra@gmail.com>
Tue, 1 Oct 2002 06:15:33 +0000 (06:15 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 1 Oct 2002 06:15:33 +0000 (06:15 +0000)
(TC_FORCE_RELOCATION): Tidy arg.

gas/ChangeLog
gas/config/tc-mips.h

index ec821c65ba6b909ce11b5f7becfc7321c28c9a6c..155b113e408494c53fd4c455a6958aecf9af5a5b 100644 (file)
@@ -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>
index 6b2c3dc06f42c4c4eef4efabcfac4a653cb8e4a9..13982a6eabc943822fa75543f5a7e6b10f8543c0 100644 (file)
@@ -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;