binutils-gdb/ld/testsuite
Faraz Shahbazker 1e129bbefa 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.
2019-05-28 10:49:16 -07:00
..
config Use better test for usable compiler in ld testsuite. 2019-04-24 12:14:56 -07:00
ld-aarch64 aarch64: fix variant_pcs ld tests 2019-05-28 12:03:51 +01:00
ld-alpha
ld-arc
ld-arm [binutils][Arm] Fix Branch Future relocation handling and testisms 2019-05-21 14:53:49 +01:00
ld-auto-import Use better test for usable compiler in ld testsuite. 2019-04-24 12:14:56 -07:00
ld-avr Fix PR 24571 - Relaxation does not shorten jmp or call to target at pc-relative range boundary 2019-05-21 12:48:06 +05:30
ld-bootstrap
ld-bpf ld: add support for eBPF 2019-05-23 19:34:15 +02:00
ld-cdtest
ld-checks
ld-cris
ld-crx
ld-csky
ld-cygwin Use better test for usable compiler in ld testsuite. 2019-04-24 12:14:56 -07:00
ld-d10v
ld-discard
ld-elf PR24511, nm should not mark symbols in .init_array as "t" 2019-05-04 16:57:33 +09:30
ld-elfcomm Use better test for usable compiler in ld testsuite. 2019-04-24 12:14:56 -07:00
ld-elfvers Use better test for usable compiler in ld testsuite. 2019-04-24 12:14:56 -07:00
ld-elfvsb Use better test for usable compiler in ld testsuite. 2019-04-24 12:14:56 -07:00
ld-elfweak Use better test for usable compiler in ld testsuite. 2019-04-24 12:14:56 -07:00
ld-fastcall
ld-frv
ld-gc Use better test for usable compiler in ld testsuite. 2019-04-24 12:14:56 -07:00
ld-h8300
ld-i386 Use better test for usable compiler in ld testsuite. 2019-04-24 12:14:56 -07:00
ld-ia64
ld-ifunc Use better test for usable compiler in ld testsuite. 2019-04-24 12:14:56 -07:00
ld-libs
ld-linkonce
ld-m68hc11
ld-m68k
ld-mep
ld-metag
ld-mips-elf MIPS/LD: Skip overflow check for %pcrel_hi relocations 2019-05-28 10:49:16 -07:00
ld-misc
ld-mmix
ld-mn10300 Use better test for usable compiler in ld testsuite. 2019-04-24 12:14:56 -07:00
ld-msp430-elf
ld-nds32
ld-nios2
ld-or1k
ld-pe Use better test for usable compiler in ld testsuite. 2019-04-24 12:14:56 -07:00
ld-pie Use better test for usable compiler in ld testsuite. 2019-04-24 12:14:56 -07:00
ld-plugin Don't complain undefined weak dynamic reference 2019-04-26 07:52:09 -07:00
ld-powerpc PowerPC notoc linkage stubs 2019-05-24 10:28:07 +09:30
ld-pru
ld-riscv-elf
ld-s12z
ld-s390
ld-scripts m32c padding with nops 2019-05-04 17:23:18 +09:30
ld-selective
ld-sh Use better test for usable compiler in ld testsuite. 2019-04-24 12:14:56 -07:00
ld-shared Use better test for usable compiler in ld testsuite. 2019-04-24 12:14:56 -07:00
ld-size Use better test for usable compiler in ld testsuite. 2019-04-24 12:14:56 -07:00
ld-sparc
ld-spu
ld-srec Use better test for usable compiler in ld testsuite. 2019-04-24 12:14:56 -07:00
ld-tic6x
ld-tilegx
ld-tilepro
ld-undefined PicoJava weak undefined symbols 2019-05-06 11:41:28 +09:30
ld-unique Use better test for usable compiler in ld testsuite. 2019-04-24 12:14:56 -07:00
ld-v850
ld-vax-elf
ld-visium
ld-vxworks
ld-x86-64 Use better test for usable compiler in ld testsuite. 2019-04-24 12:14:56 -07:00
ld-xc16x
ld-xstormy16
ld-xtensa
ld-z8k
lib ld: add support for eBPF 2019-05-23 19:34:15 +02:00
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-9303