MIPS/GAS: Don't convert RELA JALR relocations on R6
authorMaciej W. Rozycki <macro@imgtec.com>
Mon, 13 Jun 2016 15:52:42 +0000 (16:52 +0100)
committerMaciej W. Rozycki <macro@imgtec.com>
Mon, 13 Jun 2016 16:02:22 +0000 (17:02 +0100)
commit97f50151221de0a023a8317559b1992a90f9cb8f
tree59c7ceb3a61fb03e7d7471b3c69636b9c1c46b62
parent0c9663cbd41c27a8e20ca88a53ba3deae374f1d8
MIPS/GAS: Don't convert RELA JALR relocations on R6

Revert an inadvertent change to make RELA JALR relocations
section-relative on MIPS R6 targets made with commit 7361da2c952e ("Add
support for MIPS R6.").  There is no need to make this a special case
and the comment introduced with the said change clearly indicates this
was not intended.

gas/
* config/tc-mips.c (mips_fix_adjustable): Don't convert RELA
JALR relocations on R6.
* testsuite/gas/mips/jal-svr4pic-local.d: New test.
* testsuite/gas/mips/mips1@jal-svr4pic-local.d: New test.
* testsuite/gas/mips/r3000@jal-svr4pic-local.d: New test.
* testsuite/gas/mips/micromips@jal-svr4pic-local.d: New test.
* testsuite/gas/mips/jal-svr4pic-local-n32.d: New test.
* testsuite/gas/mips/micromips@jal-svr4pic-local-n32.d: New
test.
* testsuite/gas/mips/jal-svr4pic-local-n64.d: New test.
* testsuite/gas/mips/micromips@jal-svr4pic-local-n64.d: New
test.
* testsuite/gas/mips/jal-svr4pic-local.s: New test source.
* testsuite/gas/mips/jal-svr4pic-local-newabi.s: New test
source.
* testsuite/gas/mips/mips.exp: Run the new tests.
13 files changed:
gas/ChangeLog
gas/config/tc-mips.c
gas/testsuite/gas/mips/jal-svr4pic-local-n32.d [new file with mode: 0644]
gas/testsuite/gas/mips/jal-svr4pic-local-n64.d [new file with mode: 0644]
gas/testsuite/gas/mips/jal-svr4pic-local-newabi.s [new file with mode: 0644]
gas/testsuite/gas/mips/jal-svr4pic-local.d [new file with mode: 0644]
gas/testsuite/gas/mips/jal-svr4pic-local.s [new file with mode: 0644]
gas/testsuite/gas/mips/micromips@jal-svr4pic-local-n32.d [new file with mode: 0644]
gas/testsuite/gas/mips/micromips@jal-svr4pic-local-n64.d [new file with mode: 0644]
gas/testsuite/gas/mips/micromips@jal-svr4pic-local.d [new file with mode: 0644]
gas/testsuite/gas/mips/mips.exp
gas/testsuite/gas/mips/mips1@jal-svr4pic-local.d [new file with mode: 0644]
gas/testsuite/gas/mips/r3000@jal-svr4pic-local.d [new file with mode: 0644]