diff options
author | Maciej W. Rozycki <macro@imgtec.com> | 2016-06-21 16:01:27 +0100 |
---|---|---|
committer | Maciej W. Rozycki <macro@imgtec.com> | 2016-06-21 18:05:18 +0100 |
commit | 912815f079a8f3c40c0968ba5140619de079e199 (patch) | |
tree | 098bd436e09913e92c8add39db353611248f38b2 /cpu | |
parent | 5f68df25f869d74f0235276a81536392fd376e6d (diff) | |
download | gdb-912815f079a8f3c40c0968ba5140619de079e199.zip gdb-912815f079a8f3c40c0968ba5140619de079e199.tar.gz gdb-912815f079a8f3c40c0968ba5140619de079e199.tar.bz2 |
MIPS/GAS: Use the module level ISA setting for R6 relaxation
Use the module level ISA setting rather than the last ISA selected with
a `.set' directive in the source file in determination as to whether to
keep PC-relative relocations and then with the original symbol referred,
for the purpose of R6 linker relaxation.
This is so that with e.g. code like this:
b foo
.set mips32r2
...
it's the command line options or any `.module' directive that decides
how to encode any relocation for `foo' rather than the presence of `.set
mips32r2'.
gas/
* config/tc-mips.c (mips_force_relocation): Use `file_mips_opts'
rather than `mips_opts' for the R6 ISA check.
(mips_fix_adjustable): Likewise.
* testsuite/gas/mips/pcrel-reloc-1.d: New test.
* testsuite/gas/mips/pcrel-reloc-1-r6.d: New test.
* testsuite/gas/mips/pcrel-reloc-2.d: New test.
* testsuite/gas/mips/pcrel-reloc-2-r6.d: New test.
* testsuite/gas/mips/pcrel-reloc-3.d: New test.
* testsuite/gas/mips/pcrel-reloc-3-r6.d: New test.
* testsuite/gas/mips/pcrel-reloc-1.s: New test source.
* testsuite/gas/mips/mips.exp: Run the new tests.
Diffstat (limited to 'cpu')
0 files changed, 0 insertions, 0 deletions