<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - llvm-nm does not understand gcc -flto symbols"
href="https://bugs.llvm.org/show_bug.cgi?id=41437">41437</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm-nm does not understand gcc -flto symbols
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>llvm-nm
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rupprecht@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>bero@lindev.ch, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>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)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>