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

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 13 13:52:38 PST 2020


MaskRay added a comment.

In D52810#1817883 <https://reviews.llvm.org/D52810#1817883>, @sbc100 wrote:

> I it seems that the printing of this error message only occurs with GNU nm if the object doesn't have a symbols table at all.  Have no symbols in the table does not print the error message.
>
>   $ touch foo.c
>   $ gcc -c foo.c
>   $ nm foo.o  <- no error output here.
>   $ strip foo.o
>   $ nm foo.o
>   nm: foo.o: no symbols
>


Interesting (subtle) behavior...

@rupprecht Do we know what projects parse `"no symbols"` from `llvm-nm` output?


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