llvm-project
llvm-project copied to clipboard
--size-sort causes symbols to not print
| 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
r351347
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