binutils-gdb/ld/testsuite/ld-elf/pr22269-1.rd
H.J. Lu f3012016f0 Add a compile-time test for PR ld/22269
This compile-time test requires a target C compiler to run.  It fails
on many targets where ELF backend linkers fail to check undefined weak
symbol in static PIE via UNDEFWEAK_NO_DYNAMIC_RELOC.

	PR ld/22269
	* testsuite/ld-elf/pr22269-1.rd: New file.
	* testsuite/ld-elf/pr22269-1.c: Likewise.
	* testsuite/ld-elf/shared.exp: Run pr22269-1.
2017-10-20 09:47:08 -07:00

6 lines
92 B
R

# NONE relocs are not needed in a PIE.
#failif
#...
[0-9a-f]+ +[0-9a-f]+ +R_.*_NONE.*
#pass