Add a --no-weak option to nm.
authorNick Clifton <nickc@redhat.com>
Wed, 18 May 2022 12:15:22 +0000 (13:15 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 18 May 2022 12:15:22 +0000 (13:15 +0100)
commit2c3cc81e068464b5a3d5bf19a9cf3cf3dd6b7b55
tree5d5ae06c550788f2885c324e074395f6f10a971e
parentc76d61da4a65eaadca861bf6c77d579a5cc3f422
Add a --no-weak option to nm.

PR 29135
* nm.c (non_weak): New variable.
(filter_symbols): When non-weak is true, ignore weak symbols.
(long_options): Add --no-weak.
(usage): Mention --no-weak.
(main): Handle -W/--no-weak.
* doc/binutils.texi: Document new feature.
* NEWS: Mention the new feature.
* testsuite/binutils-all/nm.exp: Add test of new feature.
* testsuite/binutils-all/no-weak.s: New test source file.
binutils/ChangeLog
binutils/NEWS
binutils/doc/binutils.texi
binutils/nm.c
binutils/testsuite/binutils-all/nm.exp
binutils/testsuite/binutils-all/no-weak.s [new file with mode: 0644]