f4ab0e2d1d
No need to check version if symbol is unreferenced and undefined. bfd/ PR ld/20306 * elflink.c (elf_link_check_versioned_symbol): Return false for unreferenced undefined symbol. ld/testsuite/ * testsuite/ld-gc/gc.exp: Run pr20306 test. * ld-gc/pr20306.c: New file. * ld-gc/pr20306.d: Likewise.
3 lines
115 B
Makefile
3 lines
115 B
Makefile
#source: dummy.s
|
|
#ld: -u foo --gc-sections tmpdir/libpr20306.so
|
|
#error: .* generated: undefined reference to `foo'
|