mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 16:23:28 +08:00
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.
4 lines
115 B
Makefile
4 lines
115 B
Makefile
#source: dummy.s
|
|
#ld: -u foo --gc-sections tmpdir/libpr20306.so
|
|
#error: .* generated: undefined reference to `foo'
|