binutils-gdb/ld/testsuite/ld-powerpc/undefweak.d
Alan Modra 13ffdac36f PowerPC undefweak testcase
Test for commit 4916030821 and b293661219.

	* testsuite/ld-powerpc/empty.s: New file.
	* testsuite/ld-powerpc/undefweak.d,
	* testsuite/ld-powerpc/undefweak.s: New testcase.
	* testsuite/ld-powerpc/powerpc.exp: Run it.
2021-05-05 10:35:31 +09:30

11 lines
181 B
Makefile

#ld: tmpdir/empty.so
#readelf: --dyn-syms -r -W
#...
.* R_PPC(|64)_ADDR(32|64) .* a \+ 0
#...
.* R_PPC(|64)_JMP_SLOT .* b \+ 0
#...
.* WEAK +DEFAULT +UND b
.* WEAK +DEFAULT +UND a