aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2002-11-07 02:29:32 +0000
committerAlexandre Oliva <aoliva@redhat.com>2002-11-07 02:29:32 +0000
commit78e1bb40455fb219ff586f0d13c5175a01acdde1 (patch)
tree875e1aed3cdc40240a9b923fdc583cdf6fabe05e /gas
parent4facf7e8905fed0e31cc7c1c21f86db158815c9f (diff)
downloadgdb-78e1bb40455fb219ff586f0d13c5175a01acdde1.zip
gdb-78e1bb40455fb219ff586f0d13c5175a01acdde1.tar.gz
gdb-78e1bb40455fb219ff586f0d13c5175a01acdde1.tar.bz2
* config/tc-mips.c (macro_build_lui): _gp_disp is not special on
NEWABI, but we should still emit HI16_S for non-PIC n32.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-mips.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 6f79219..b787a99 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-07 Alexandre Oliva <aoliva@redhat.com>
+
+ * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
+ NEWABI, but we should still emit HI16_S for non-PIC n32.
+
2002-11-06 Richard Henderson <rth@redhat.com>
* config/tc-alpha.c (alpha_validate_fix): Move code ...
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 717078f..72177c1 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -3268,12 +3268,13 @@ macro_build_lui (place, counter, ep, regnum)
>> 16) & 0xffff;
*r = BFD_RELOC_UNUSED;
}
- else if (! HAVE_NEWABI)
+ else
{
assert (ep->X_op == O_symbol);
/* _gp_disp is a special case, used from s_cpload. */
assert (mips_pic == NO_PIC
- || strcmp (S_GET_NAME (ep->X_add_symbol), "_gp_disp") == 0);
+ || (! HAVE_NEWABI
+ && strcmp (S_GET_NAME (ep->X_add_symbol), "_gp_disp") == 0));
*r = BFD_RELOC_HI16_S;
}