diff options
author | Maciej W. Rozycki <macro@imgtec.com> | 2016-05-24 13:54:31 +0100 |
---|---|---|
committer | Maciej W. Rozycki <macro@imgtec.com> | 2016-05-24 14:11:50 +0100 |
commit | 44d3da2338157ad7acfd6facbcfb38ed6ec94fa1 (patch) | |
tree | 58d2bfee6de323bf7aa36f75d3906119d18ade52 /gas/ChangeLog | |
parent | 4512dafa508c4b148996f2d67222a82dd018cdd3 (diff) | |
download | gdb-44d3da2338157ad7acfd6facbcfb38ed6ec94fa1.zip gdb-44d3da2338157ad7acfd6facbcfb38ed6ec94fa1.tar.gz gdb-44d3da2338157ad7acfd6facbcfb38ed6ec94fa1.tar.bz2 |
MIPS/GAS: Treat local jump relocs the same no matter if REL or RELA
Do not convert jump relocs against local MIPS16 or microMIPS symbols to
refer to a section symbol instead even on RELA targets, as it makes it
impossible for the linker to make a JAL to JALX conversion based on ISA
symbol annotation, breaking regular and compressed MIPS interlinking.
gas/
* config/tc-mips.c (mips_fix_adjustable): Also return 0 for
jump relocations against MIPS16 or microMIPS symbols on RELA
targets.
* testsuite/gas/mips/jalx-local.d: New test.
* testsuite/gas/mips/jalx-local-n32.d: New test.
* testsuite/gas/mips/jalx-local-n64.d: New test.
* testsuite/gas/mips/jalx-local.s: New test source.
* testsuite/gas/mips/mips.exp: Run the new tests.
ld/
* testsuite/ld-mips-elf/jalx-local.d: New test.
* testsuite/ld-mips-elf/jalx-local-n32.d: New test.
* testsuite/ld-mips-elf/jalx-local-n64.d: New test.
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
Diffstat (limited to 'gas/ChangeLog')
-rw-r--r-- | gas/ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 8cf0a50..03f3319 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,4 +1,15 @@ 2016-05-24 Maciej W. Rozycki <macro@imgtec.com> + + * config/tc-mips.c (mips_fix_adjustable): Also return 0 for + jump relocations against MIPS16 or microMIPS symbols on RELA + targets. + * testsuite/gas/mips/jalx-local.d: New test. + * testsuite/gas/mips/jalx-local-n32.d: New test. + * testsuite/gas/mips/jalx-local-n64.d: New test. + * testsuite/gas/mips/jalx-local.s: New test source. + * testsuite/gas/mips/mips.exp: Run the new tests. + +2016-05-24 Maciej W. Rozycki <macro@imgtec.com> * config/tc-mips.c (md_apply_fix) <BFD_RELOC_MIPS16_TLS_TPREL_LO16>: Remove fall-through, adjust |