aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2002-08-01 20:14:49 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2002-08-01 20:14:49 +0000
commit9860559818f2a3fe6306660aa37e3e9bbf3cfe0b (patch)
tree8a2cd66dc334d53875880a0e44ca92bb6417ef8d /gas/config
parent78fde5f8a3d9a099f17a7eefd272edc007fbc927 (diff)
downloadgdb-9860559818f2a3fe6306660aa37e3e9bbf3cfe0b.zip
gdb-9860559818f2a3fe6306660aa37e3e9bbf3cfe0b.tar.gz
gdb-9860559818f2a3fe6306660aa37e3e9bbf3cfe0b.tar.bz2
[gas/]
* config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend handling to BFD_RELOC_MIPS16_GPREL. [gas/testsuite/] * gas/mips/elf-rel6.[sd]: New test. * gas/mips/mips.exp: Run it.
Diffstat (limited to 'gas/config')
-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 0290587..c8eba55 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -12694,7 +12694,7 @@ tc_gen_reloc (section, fixp)
stop md_apply_fix3 from subtracting twice in the first place since
the fake addend is required for variant frags above. */
if (fixp->fx_addsy != NULL && OUTPUT_FLAVOR == bfd_target_elf_flavour
- && code == BFD_RELOC_GPREL16
+ && (code == BFD_RELOC_GPREL16 || code == BFD_RELOC_MIPS16_GPREL)
&& reloc->addend != 0
&& mips_need_elf_addend_fixup (fixp))
reloc->addend += S_GET_VALUE (fixp->fx_addsy);