[llvm-bugs] [Bug 41437] New: llvm-nm does not understand gcc -flto symbols
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Apr 9 00:04:46 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41437
Bug ID: 41437
Summary: llvm-nm does not understand gcc -flto symbols
Product: tools
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: llvm-nm
Assignee: unassignedbugs at nondot.org
Reporter: rupprecht at google.com
CC: bero at lindev.ch, llvm-bugs at lists.llvm.org
As pointed out yesterday, llvm-nm is unable to understand symbols built with
gcc+lto:
$ echo "int xyz;" > /tmp/test.c
$ gcc -flto -c /tmp/test.c -o /tmp/test.o
$ nm /tmp/test.o
00000000 C xyz
$ llvm-nm /tmp/test.o
0000000000000001 C __gnu_lto_slim
0000000000000001 C __gnu_lto_v1
This is also annoying since GNU nm equally cannot clang+lto output, so there is
no single nm tool that can be used universally. A separate bug (filed in gnu
bugzilla perhaps) would be to add support to GNU nm for clang+lto symbols.
(Perhaps it's already there -- my local nm is still on 2.30)
--
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/20190409/70743919/attachment.html>
More information about the llvm-bugs
mailing list