aboutsummaryrefslogtreecommitdiff
path: root/binutils/doc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-05-18 13:15:22 +0100
committerNick Clifton <nickc@redhat.com>2022-05-18 13:15:22 +0100
commit2c3cc81e068464b5a3d5bf19a9cf3cf3dd6b7b55 (patch)
tree5d5ae06c550788f2885c324e074395f6f10a971e /binutils/doc
parentc76d61da4a65eaadca861bf6c77d579a5cc3f422 (diff)
downloadgdb-2c3cc81e068464b5a3d5bf19a9cf3cf3dd6b7b55.zip
gdb-2c3cc81e068464b5a3d5bf19a9cf3cf3dd6b7b55.tar.gz
gdb-2c3cc81e068464b5a3d5bf19a9cf3cf3dd6b7b55.tar.bz2
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.
Diffstat (limited to 'binutils/doc')
-rw-r--r--binutils/doc/binutils.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi
index 292588c..81be746 100644
--- a/binutils/doc/binutils.texi
+++ b/binutils/doc/binutils.texi
@@ -819,6 +819,7 @@ nm [@option{-A}|@option{-o}|@option{--print-file-name}]
[@option{-u}|@option{--undefined-only}]
[@option{-U}|@option{--defined-only}]
[@option{-V}|@option{--version}]
+ [@option{-W}|@option{--no-weak}]
[@option{-X 32_64}]
[@option{--no-demangle}]
[@option{--no-recurse-limit}|@option{--recurse-limit}]]
@@ -1213,6 +1214,10 @@ them as escape sequences highlighted in red (if supported by the
output device). The colouring is intended to draw attention to the
presence of unicode sequences where they might not be expected.
+@item -W
+@itemx --no-weak
+Do not display weak symbols.
+
@item --with-symbol-versions
@item --without-symbol-versions
Enables or disables the display of symbol version information. The