aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2006-07-31 17:23:31 +0000
committerThiemo Seufer <ths@networkno.de>2006-07-31 17:23:31 +0000
commitd103cf611721c0e44394c3cb7dc6d7fe67c5c770 (patch)
treec6c9e09ffc42ab189d4a7fc55385f2627b0df6ac /gas
parent4b65dc6e939db8070fadc22fd37b9de227c82b32 (diff)
downloadgdb-d103cf611721c0e44394c3cb7dc6d7fe67c5c770.zip
gdb-d103cf611721c0e44394c3cb7dc6d7fe67c5c770.tar.gz
gdb-d103cf611721c0e44394c3cb7dc6d7fe67c5c770.tar.bz2
* config/tc-mips.c (md_apply_fix, tc_gen_reloc): Remove special
handling for BFD_RELOC_MIPS16_JMP.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-mips.c12
2 files changed, 6 insertions, 11 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index d88e39d..842d603 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2006-07-31 Thiemo Seufer <ths@mips.com>
+
+ * config/tc-mips.c (md_apply_fix, tc_gen_reloc): Remove special
+ handling for BFD_RELOC_MIPS16_JMP.
+
2006-07-24 Andreas Schwab <schwab@suse.de>
PR/2756
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 196d251..f9cca4d 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -11787,14 +11787,8 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg ATTRIBUTE_UNUSED)
case BFD_RELOC_MIPS16_GPREL:
case BFD_RELOC_MIPS16_HI16:
case BFD_RELOC_MIPS16_HI16_S:
- /* Nothing needed to do. The value comes from the reloc entry */
- break;
-
case BFD_RELOC_MIPS16_JMP:
- /* We currently always generate a reloc against a symbol, which
- means that we don't want an addend even if the symbol is
- defined. */
- *valP = 0;
+ /* Nothing needed to do. The value comes from the reloc entry */
break;
case BFD_RELOC_64:
@@ -13568,10 +13562,6 @@ tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixp)
else
reloc->addend = fixp->fx_addnumber;
- /* Handle relocs adjusted against a section symbol. */
- if (fixp->fx_r_type == BFD_RELOC_MIPS16_JMP)
- reloc->addend += fixp->fx_offset;
-
/* Since the old MIPS ELF ABI uses Rel instead of Rela, encode the vtable
entry to be used in the relocation's section offset. */
if (! HAVE_NEWABI && fixp->fx_r_type == BFD_RELOC_VTABLE_ENTRY)