[PATCH] D62070: Update llvm-nm -s to use a multi-var option

Michael Trent via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 23 16:20:17 PDT 2020


mtrent added a comment.

In D62070#2000628 <https://reviews.llvm.org/D62070#2000628>, @MaskRay wrote:

> It seems that we have some parsing difficulty here:/ I tried to use `llvm-nm -s` today for `--print-armap` (GNU/FreeBSD nm) and I noticed that `-s` is reserved for Mach-O. https://www.unix.com/man-page/osx/1/nm/ says
>
> > -s segname sectname
> >  List only those symbols in the section (segname,sectname).
>
> This also appears to be the last use case of `cl::multi_val`:/ Does `-s` have a longer option for the `SegSect` functionality? After all, it has been broken so many years... (the only order which was supported was `llvm-nm /bin/ls -s __TEXT __text` before this patch).


There is no long form replacement for -s.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D62070





More information about the llvm-commits mailing list