[llvm-bugs] [Bug 34395] New: llvm-nm yields no useful information for files compiled with lto

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 31 02:41:06 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=34395

            Bug ID: 34395
           Summary: llvm-nm yields no useful information for files
                    compiled with lto
           Product: tools
           Version: 5.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-nm
          Assignee: unassignedbugs at nondot.org
          Reporter: mvogelsang at rocketmail.com
                CC: llvm-bugs at lists.llvm.org

llvm-nm doesn't returns nothing useful from files compiled with LTO.

If we have the file test.c containing
'''
char a[10];
char b[20];
char c[30];
'''

and run `$CC -flto  -c test.c -o test.o` the result of `llvm-nm -P test.o`
turns out to be the following
'''
a C ---------------- 0
b C ---------------- 0
c C ---------------- 0
'''

I do understand address/offset information being unavailable, but shouldn't
this output encode at least something concerning each symbol's value/size?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170831/8a9fd359/attachment.html>


More information about the llvm-bugs mailing list