* config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
authorAlexandre Oliva <aoliva@redhat.com>
Mon, 18 Nov 2002 20:41:03 +0000 (20:41 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 18 Nov 2002 20:41:03 +0000 (20:41 +0000)
GOT_LO16 on NEWABI.

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

index a8a2c99499835f380e02a627fd62d64e937e87a3..2b74b6b4a2e6dbce578b1a83037ba12cd41767fb 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-18  Alexandre Oliva  <aoliva@redhat.com>, Chris Demetriou  <cgd@broadcom.com>
+
+       * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
+       GOT_LO16 on NEWABI.
+
 2002-11-18  Svein E. Seldal  <Svein.Seldal@solidas.com>
 
        * config/tc-tic4x.c: Fixed proper commandline
index 72177c1bd54768dcbe86c2130cd8db295473214b..611e775283cecaf777aedddebfa5600117eddf94 100644 (file)
@@ -13229,7 +13229,7 @@ tc_gen_reloc (section, fixp)
        abort ();
 
       /* newabi uses R_MIPS_GOT_DISP for local symbols */
-      if (HAVE_NEWABI && BFD_RELOC_MIPS_GOT_LO16)
+      if (HAVE_NEWABI && fixp->fx_r_type == BFD_RELOC_MIPS_GOT_LO16)
        {
          fixp->fx_r_type = BFD_RELOC_MIPS_GOT_DISP;
          retval[1] = NULL;