<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 should print section names for section symbols"
href="https://bugs.llvm.org/show_bug.cgi?id=39995">39995</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm-nm should print section names for section 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>Windows NT
</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>jh7370.2008@my.bristol.ac.uk
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>GNU nm displays the section name in the place of a symbol name for section
symbols when dumping with the --debug-syms switch. It would make sense if we
did a similar thing in llvm-nm, as it makes the output more readable.
Example input:
int bar;
int main(){
return bar;
}
Compiled with:
C:\llvm\build\Debug\bin\clang.exe --target=x86_64-pc-linux -c bar.cpp -g
GNU nm:
nm -a bar.o
0000000000000000 N .debug_abbrev
0000000000000000 N .debug_line
0000000000000000 N .debug_str
0000000000000000 t .text
0000000000000000 B bar
0000000000000000 a bar.cpp
0000000000000000 T main
llvm-nm:
U
0000000000000000 t
0000000000000000 ?
0000000000000000 ?
0000000000000000 ?
0000000000000000 B bar
0000000000000000 a bar.cpp
0000000000000000 T main
I'm guessing that this would also fix the '?' which should be 'N' for the
.debug* section symbols. If not, a new bug should be filed.</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>