[llvm-bugs] [Bug 39997] New: llvm-nm prints 0 for symbol sizes for format=posix output
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Dec 13 06:18:41 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=39997
Bug ID: 39997
Summary: llvm-nm prints 0 for symbol sizes for format=posix
output
Product: tools
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: llvm-nm
Assignee: unassignedbugs at nondot.org
Reporter: jh7370.2008 at my.bristol.ac.uk
CC: llvm-bugs at lists.llvm.org
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).
--
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/20181213/2ea06e3c/attachment.html>
More information about the llvm-bugs
mailing list