https://sourceware.org/bugzilla/show_bug.cgi?id=25355
Bug ID: 25355 Summary: nm reports a variable as "T" with -flto and -fno-common Product: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: marxin.liska at gmail dot com Target Milestone: --- As being discussed here: https://lists.gnu.org/archive/html/libtool/2020-01/msg00022.html nm reports misleadingly a global variable: $ cat nm.c char nm_test_var; $ gcc-9 nm.c -c -fno-common $ nm nm.o 0000000000000000 B nm_test_var $ gcc-9 nm.c -c -fno-common -flto $ nm nm.o 00000000 T nm_test_var So the issue is that I would expect "B" from the last nm invocation. -- You are receiving this mail because: You are on the CC list for the bug.