llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

--size-sort causes symbols to not print

Open rupprecht opened this issue 7 years ago • 2 comments

Bugzilla Link 40035
Resolution FIXED
Resolved on May 24, 2019 17:41
Version trunk
OS Linux

Extended Description

Using "--size-sort" seems to prevent symbols from printing in llvm-nm. Adding "-S" fixes it but it should not be necessary.

$ echo 'int foo; int bar() { return 5; }' | clang -xc -c - -o /tmp/foo.o $ nm --size-sort /tmp/foo.o 0000000000000004 C foo 000000000000000b T bar $ llvm-nm --size-sort /tmp/foo.o $ llvm-nm -S --size-sort /tmp/foo.o 0000000000000004 0000000000000004 C foo 0000000000000000 000000000000000b T bar

rupprecht avatar Dec 15 '18 01:12 rupprecht

r351347

llvmbot avatar May 25 '19 00:05 llvmbot

Hello,

I have submitted a change[1] to the llvm-nm which makes the llvm-nm print symbol sizes, type and name when --size-sort is passed as an argument

[1] https://reviews.llvm.org/D56063

llvmbot avatar Dec 26 '18 10:12 llvmbot