bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/25355] nm reports data variable as "T" with -flto


From: slyfox at inbox dot ru
Subject: [Bug binutils/25355] nm reports data variable as "T" with -flto
Date: Sun, 09 Feb 2020 22:47:45 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=25355

--- Comment #13 from Sergei Trofimovich <slyfox at inbox dot ru> ---
(In reply to H.J. Lu from comment #12)
> It is independent of -fno-common:
> 
> 
> [hjl@gnu-cfl-2 pr25355]$ cat x.c
> int nm_test_var = 30;
> 
> extern int foo (void);
> 
> int
> main ()
> {
>   return foo ();
> }
> [hjl@gnu-cfl-2 pr25355]$ gcc -flto -c x.c
> [hjl@gnu-cfl-2 pr25355]$ gcc-nm x.o
>          U foo
> 00000000 T main
> 00000000 T nm_test_var
> [hjl@gnu-cfl-2 pr25355]$

Which gcc version you test? gcc-10 switched to -fno-common in
https://gcc.gnu.org/PR85678.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]