bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/25355] New: nm reports a variable as "T" with -flto and -f


From: marxin.liska at gmail dot com
Subject: [Bug binutils/25355] New: nm reports a variable as "T" with -flto and -fno-common
Date: Wed, 08 Jan 2020 09:14:54 +0000

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.


reply via email to

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