aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mips.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2002-11-18 20:41:03 +0000
committerAlexandre Oliva <aoliva@redhat.com>2002-11-18 20:41:03 +0000
commit6b70243f72bcad29cae24dec86c2bd531ff4dbbe (patch)
treecb8249dab341c7649564c7432512ea93b9d44788 /gas/config/tc-mips.c
parent0c5e171aedb2697b4ebf072e47f498aaf62b7a05 (diff)
downloadgdb-6b70243f72bcad29cae24dec86c2bd531ff4dbbe.zip
gdb-6b70243f72bcad29cae24dec86c2bd531ff4dbbe.tar.gz
gdb-6b70243f72bcad29cae24dec86c2bd531ff4dbbe.tar.bz2
* config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
GOT_LO16 on NEWABI.
Diffstat (limited to 'gas/config/tc-mips.c')
-rw-r--r--gas/config/tc-mips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 72177c1..611e775 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -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;