diff options
author | Maciej W. Rozycki <macro@imgtec.com> | 2017-04-25 10:20:14 +0100 |
---|---|---|
committer | Maciej W. Rozycki <macro@imgtec.com> | 2017-04-25 11:53:45 +0100 |
commit | adc1273cb27286452ed8b32c5ca3ea263b4854f0 (patch) | |
tree | d81c520fc1e7bac4c790d5c09cfd585c40021ee1 /bfd/verilog.c | |
parent | debed3db4887483552103da36d180967ef0dca5f (diff) | |
download | gdb-adc1273cb27286452ed8b32c5ca3ea263b4854f0.zip gdb-adc1273cb27286452ed8b32c5ca3ea263b4854f0.tar.gz gdb-adc1273cb27286452ed8b32c5ca3ea263b4854f0.tar.bz2 |
MIPS/GAS: Correct BFD_RELOC_MIPS16_16_PCREL_S1 fixup size
Correct the size of a BFD_RELOC_MIPS16_16_PCREL_S1 fixup made in
`md_convert_frag', fixing a bug introduced with commit c9775dde3277
("MIPS16: Add R_MIPS16_PC16_S1 branch relocation support)". Add test
cases to verify that the overflow of this fixup's in-place addend is
still correctly detected.
gas/
* config/tc-mips.c (md_convert_frag): Correct
BFD_RELOC_MIPS16_16_PCREL_S1 fixup size.
* testsuite/gas/mips/mips16-branch-addend-4.d: New test.
* testsuite/gas/mips/mips16-branch-addend-5.d: New test.
* testsuite/gas/mips/mips16-branch-addend-5.l: New stderr
output.
* testsuite/gas/mips/mips16-branch-addend-4.s: New test source.
* testsuite/gas/mips/mips16-branch-addend-5.s: New test source.
* testsuite/gas/mips/mips.exp: Run the new tests.
Diffstat (limited to 'bfd/verilog.c')
0 files changed, 0 insertions, 0 deletions