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.
3 lines
123 B
C
3 lines
123 B
C
static const char __evoke_link_warning_foobar[]
|
|
__attribute__ ((used, section (".gnu.warning.foobar\n\t#")))
|
|
= "foobar";
|