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

Jordan Rupprecht via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 3 14:00:42 PDT 2018


rupprecht added a comment.

In https://reviews.llvm.org/D52810#1254103, @MaskRay wrote:

> Looks good, GNU and some BSD nm use: `nm: /bin/cat: no symbols` but the repeated command name and filename do not seem useful.
>
> In POSIX.1-2017 specification of nm, "If no symbolic information is available for a valid input file, the nm utility shall report that fact, but not consider it an error condition."


Thanks for that pointer!


Repository:
  rL LLVM

https://reviews.llvm.org/D52810





More information about the llvm-commits mailing list