mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
db7129469b
bfd/ PR ld/16746 * linker.c (_bfd_generic_link_add_one_symbol): Don't issue a warning for references in LTO IR to warning symbols. ld/testsuite/ PR ld/16746 * ld-plugin/lto.exp: Add 4 tests for PR ld/16746. * ld-plugin/pr16746a.c: New file. * ld-plugin/pr16746b.c: Likewise. * ld-plugin/pr16746c.c: Likewise. * ld-plugin/pr16746d.c: Likewise.
6 lines
146 B
C
6 lines
146 B
C
static const char __evoke_link_warning_foobar[]
|
|
__attribute__ ((used, section (".gnu.warning.foobar\n\t#")))
|
|
= "foobar";
|
|
|
|
void foobar (void) {}
|