bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/24326] New: `nm` outputs symbol values of 0 for ft LTO obj


From: brandon.m.simmons at gmail dot com
Subject: [Bug binutils/24326] New: `nm` outputs symbol values of 0 for ft LTO object files
Date: Tue, 12 Mar 2019 18:21:14 +0000

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

            Bug ID: 24326
           Summary: `nm` outputs symbol values of 0 for ft LTO object
                    files
           Product: binutils
           Version: 2.28
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: brandon.m.simmons at gmail dot com
  Target Milestone: ---

If I compile a file `tmp.c`, that looks like:


    char constantFOO[0x12];
    char constantBAR[0x34];

with `gcc -c tmp.c -o tmp.o && nm tmp.o`, nm outputs:

    0000000000000034 C constantBAR
    0000000000000012 C constantFOO

But adding `-flto -ffat-lto-objects` to gcc flags, `nm` outputs:

    00000000 C constantBAR
    00000000 C constantFOO

It was suggested this was a bug, here:
https://stackoverflow.com/a/55127171/176841

-- 
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]