[PATCH] D118193: [llvm-nm] add a new option --bit-mode to specify the type of object file llvm-nm should examine

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 25 16:46:38 PST 2022


MaskRay added a comment.

So I just found https://www.ibm.com/docs/en/aix/7.1?topic=n-nm-command

If the intention is to support AIX nm -X, I think it is fine because GNU nm's manpage says `-X  This option is ignored for compatibility with the AIX version of nm.  It takes one parameter which must be the string 32_64.  The default mode of AIX nm corresponds to -X 32, which is not supported by GNU nm.`
For other short options I would be concerned if there could be a potential conflict with GNU nm.

For the long option `--bit-mode`, I don't know whether it is necessary.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D118193



More information about the llvm-commits mailing list