binutils-gdb/ld/testsuite
H.J. Lu 4b97e3893e Add 2 testcases for PR ld/22269
Since undefined weak symbols in static PIE are always resolved to 0 at
run-time, linker should resolve them as 0 at link-time, regardless of
whether "-z dynamic-undefined-weak" is used.  "-z dynamic-undefined-weak"
only makes undefined weak symbols dynamic, but doesn't change undefined
weak symbol resolution in static PIE at link-time.  These tests currently
pass on x86, but fails on many other targets.

The framework to resolve weak symbols in static PE at link-time is
posted at

https://sourceware.org/ml/binutils/2017-10/msg00087.html

which requires users/hjl/check_relocs branch to call check_relocs after
opening all inputs.  I will submit backend patches for failling targets
after merging users/hjl/check_relocs branch next.

	* PR ld/22269
	* testsuite/ld-elf/pr22269.s: New file.
	* testsuite/ld-elf/pr22269a.d: Likewise.
	* testsuite/ld-elf/pr22269b.d: Likewise.
2017-10-11 13:44:16 -07:00
..
config LD_CLASS: Check .libs/ld-new for linker first 2017-08-09 16:38:09 -07:00
ld-aarch64 PR22118, Incorrectly-capitalized regexp 2017-09-15 20:21:42 +09:30
ld-alpha Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-arc Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-arm [ARM] PR ld/21402, only override the symbol dynamic decision on undefined weak symbol. 2017-10-10 16:18:07 +01:00
ld-auto-import
ld-avr
ld-bootstrap
ld-cdtest
ld-checks
ld-cris testsuite/ld-cris various files: Run ld with --hash-style=sysv. 2017-08-30 02:27:14 +02:00
ld-crx
ld-cygwin
ld-d10v
ld-discard
ld-elf Add 2 testcases for PR ld/22269 2017-10-11 13:44:16 -07:00
ld-elfcomm
ld-elfvers
ld-elfvsb Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-elfweak
ld-fastcall
ld-frv More support for ld --hash-style in the ld testsuite 2017-08-08 07:22:36 +09:30
ld-gc Remove pr19161 test hppa xfail 2017-08-23 08:58:42 +09:30
ld-h8300
ld-i386 x86: Run PR ld/19636 tests with -z dynamic-undefined-weak 2017-10-11 13:36:19 -07:00
ld-ia64 Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-ifunc Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-libs
ld-linkonce
ld-m68hc11
ld-m68k Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-mep
ld-metag Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-mips-elf MIPS/BFD: Correct microMIPS cross-mode BAL to JALX relaxation 2017-08-30 16:07:45 +01:00
ld-misc
ld-mmix PR ld/20125, MMIX weak symbols 2017-08-21 03:43:35 +02:00
ld-mn10300
ld-msp430-elf Improve MSP430 section placement. 2017-08-29 17:18:43 +01:00
ld-nds32
ld-nios2
ld-pe
ld-pie
ld-plugin Skip the PR 14918 linker test for ARM targets. 2017-09-28 11:33:20 +01:00
ld-powerpc Change readelf so that when --wide is active a relocation's full name is displayed. 2017-10-05 13:25:44 +01:00
ld-pru
ld-s390 Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-scripts ld: Don't allow '~' as the first char in symbol name 2017-10-09 04:17:24 -07:00
ld-selective
ld-sh Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-shared Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-size
ld-sparc Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-spu
ld-srec Fix link time warning message when running the srec linker tests. 2017-10-09 15:32:09 +01:00
ld-tic6x Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-tilegx
ld-tilepro
ld-undefined LD/testsuite: Fix undefined symbol tests for MIPS and S+core targets 2017-09-26 12:09:50 +01:00
ld-unique
ld-v850
ld-vax-elf Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-versados
ld-visium
ld-vxworks
ld-x86-64 x86: Run PR ld/19636 tests with -z dynamic-undefined-weak 2017-10-11 13:36:19 -07:00
ld-xc16x
ld-xstormy16
ld-xtensa Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-z8k
lib ld: Add "--" after regexp 2017-08-24 17:45:24 -07: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