[PATCH] D52810: [llvm-nm] Print an explicit "no symbols" message when an object file has no symbols

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 13 15:08:03 PST 2020


sbc100 added a comment.

In emscripten we don't parse "no symbols" but we do run "llvm-nm -print-armap" and out users are seeing noise when they have objects with no symbols (not because they are stripped but simply because there are no public symbols).

https://github.com/emscripten-core/emscripten/pull/10198 is my workaround.

I've got a fix llvm-nm that I will upload, but funnily enough it doesn't actually solve the wasm issue.   The reason is that with ELF we always generate at least one local symbols (the STT_FILE symbols) so no unstripped object will ever report "no symbols".  However compiling the empty file on wasm does generate file with a symbol table of size zero..  which mean the fix I'm proposing doesn't actually fix our issue.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D52810/new/

https://reviews.llvm.org/D52810





More information about the llvm-commits mailing list