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: unassignedb...@nondot.org
Reporter: jh7370.2...@my.bristol.ac.uk
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs