diff options
author | Faraz Shahbazker <fshahbazker@wavecomp.com> | 2019-05-23 18:16:08 -0700 |
---|---|---|
committer | Faraz Shahbazker <fshahbazker@wavecomp.com> | 2019-05-28 10:49:16 -0700 |
commit | 1e129bbefadbf09ace0fc7fcb3cfcda13700e3b8 (patch) | |
tree | fb8da25dcc2cc23c404b557906b0215e62dee631 /ld/ldctor.h | |
parent | a2f4b66c9eb5210f8ef6038d7194af1e5f314f97 (diff) | |
download | gdb-1e129bbefadbf09ace0fc7fcb3cfcda13700e3b8.zip gdb-1e129bbefadbf09ace0fc7fcb3cfcda13700e3b8.tar.gz gdb-1e129bbefadbf09ace0fc7fcb3cfcda13700e3b8.tar.bz2 |
MIPS/LD: Skip overflow check for %pcrel_hi relocations
Overflow checks were removed for all hi16 relocations except PC-relative
high relocations per PR ld/16720. Remove overflow checks from %pcrel_hi
relocations so that we can correctly handle negative offsets from PC.
bfd/
* elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_PCHI16>:
Remove overflow check.
ld/
* testsuite/ld-mips-elf/undefweak-overflow.s: Remove test case
for pcrel_hi/pcrel_lo.
* testsuite/ld-mips-elf/undefweak-overflow.d: Update to match.
* testsuite/ld-mips-elf/reloc-pcrel-r6.s: New test source.
* testsuite/ld-mips-elf/reloc-pcrel-r6.d: New test linker script.
* testsuite/ld-mips-elf/reloc-pcrel-r6.ld: New test.
* testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
Diffstat (limited to 'ld/ldctor.h')
0 files changed, 0 insertions, 0 deletions