nm: Add --quiet to suppress "no symbols" diagnostic
authorFangrui Song <maskray@google.com>
Fri, 26 Feb 2021 17:25:45 +0000 (09:25 -0800)
committerFangrui Song <maskray@google.com>
Fri, 26 Feb 2021 17:26:41 +0000 (09:26 -0800)
commit7fe1b1388ff80f10e932cde5d82d7268742ef336
tree9ec68f36082035547db348a864d106a8bcec594f
parentfe0171d248e6d4cbc59c3101b9e74e18a9292294
nm: Add --quiet to suppress "no symbols" diagnostic

PR binutils/27408
* readelf.c (quiet): New option flag.
(enum long_option_values): New enum to hold long option value.
(long_options): Add --quiet.
(usage): Mention --quiet.
(display_rel_file): If quiet is enabled, suppress "no symbols".
(main): Handle the new option.
* NEWS: Mention --quiet.
* docs/binutils.texi: Document --quiet.
binutils/ChangeLog
binutils/NEWS
binutils/doc/binutils.texi
binutils/nm.c