https://sourceware.org/bugzilla/show_bug.cgi?id=25355
--- Comment #15 from Martin Liška <marxin.liska at gmail dot com> ---
Thank you H.J. I can confirm the patch works:
Before:
$ cat x.c
int nm_test_var;
int nm_test_var2 = 1234;
extern int foo (void);
int
main ()
{
return foo ();
}
$ gcc-9 -fno-common x.c -c -flto && nm x.o
U foo
00000000 T main
00000000 T nm_test_var
00000000 T nm_test_var2
After:
$ ~/bin/binutils/bin/nm --plugin
/usr/bin/../bin/../lib/bfd-plugins/liblto_plugin.so.0.0.0 x.o
U foo
00000000 T main
00000000 B nm_test_var
00000000 D nm_test_var2
--
You are receiving this mail because:
You are on the CC list for the bug.