<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 prints 0 for symbol sizes for format=posix output"
href="https://bugs.llvm.org/show_bug.cgi?id=39997">39997</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm-nm prints 0 for symbol sizes for format=posix output
</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>normal
</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>When using --format=posix, llvm-nm prints a column for the sizes, but unless
--print-size is used, the column is all zeroes:
GNU:
C:\Work\TempWork> nm bar.o --format=posix
bar B 0000000000000000 0000000000000004
main T 0000000000000000 0000000000000014
LLVM:
C:\Work\TempWork> llvm-nm bar.o --format=posix
bar B 0 0
main T 0 0
LLVM with print-size:
C:\Work\TempWork> llvm-nm bar.o --format=posix --print-size
bar B 0 4
main T 0 14
Input source:
int bar;
int main(){
return bar;
}
This is obviously wrong. We should print the correct size with or without
print-size with this format (print-size should be a no-op when format=posix is
used).</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>