From: aoliva Date: Thu, 7 Nov 2002 02:29:31 +0000 (+0000) Subject: * config/tc-mips.c (macro_build_lui): _gp_disp is not special on X-Git-Tag: cr-0x99~5235 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=40024f261d2f3ef55cebe501094fe9d2ffb5b647;p=pf3gnuchains%2Fpf3gnuchains4x.git * 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 6f79219e25..b787a9970b 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2002-11-07 Alexandre Oliva + + * 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 * config/tc-alpha.c (alpha_validate_fix): Move code ... diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 717078fc2b..72177c1bd5 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; }