diff options
author | Maciej W. Rozycki <macro@imgtec.com> | 2016-12-14 21:20:01 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@imgtec.com> | 2016-12-14 22:05:38 +0000 |
commit | eefc3365838ed15c02bd7da39fbc31c00d07b398 (patch) | |
tree | aa3c25bd41a330bfb1b14ad7efc0fc2a254c32d6 /gold/script-sections.h | |
parent | 353abf7c10561aab3e8e7ffce6e270c3743376f0 (diff) | |
download | binutils-eefc3365838ed15c02bd7da39fbc31c00d07b398.zip binutils-eefc3365838ed15c02bd7da39fbc31c00d07b398.tar.gz binutils-eefc3365838ed15c02bd7da39fbc31c00d07b398.tar.bz2 |
MIPS16/GAS: Fix assertion failures with relocations on 16-bit instructions
Complement commit c9775dde3277 ("MIPS16: Add R_MIPS16_PC16_S1 branch
relocation support)" and report an assembly error when a relocation is
required for an instruction, currently a branch only, that has been
forced to use its unextended encoding, either with the use of an
explicit `.t' mnemonic suffix, or by means of `.set noautoextend' being
active, fixing an assertion failure currently caused instead.
gas/
* config/tc-mips.c (md_convert_frag): Report an error instead of
asserting on `ext'.
* testsuite/gas/mips/mips16-branch-unextended-1.d: New test.
* testsuite/gas/mips/mips16-branch-unextended-2.d: New test.
* testsuite/gas/mips/mips16-branch-unextended-1.s: New test
source.
* testsuite/gas/mips/mips16-branch-unextended-2.s: New test.
* testsuite/gas/mips/mips16-branch-unextended.l: New stderr
output.
* testsuite/gas/mips/mips.exp: Run the new tests.
Diffstat (limited to 'gold/script-sections.h')
0 files changed, 0 insertions, 0 deletions