Add the ability for nm to display symbol version information.
authorNick Clifton <nickc@redhat.com>
Fri, 11 Nov 2016 11:49:45 +0000 (11:49 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 11 Nov 2016 11:49:45 +0000 (11:49 +0000)
commitdf2c87b5803750d21f03b7d36f8d1abace3e1e14
treef0518bd37e6acf61c8bb6a3d29c209e94664dcbe
parent74f5402d08b857d60499b27851c204954ce6c42c
Add the ability for nm to display symbol version information.

PR binutils/20751
* nm.c (with_symbol_versions): New local variable.
(long_options): Add --with-symbol-versions.
(usage): Mention --with-symbol-versions.
(print_symbol): If with_symbol_versions is set then display the
version information associated with the symbol.
* NEWS: Mention the new feature.
* doc/binutils.texi (nm): Document the new option.
(objdump): Describe how symbol version information is displayed
for dynamic symbol dumps.
(readelf): Describe how symbol version information is displayed.
* testsuite/binutils-all/nm.exp: Add a test of the new feature.
binutils/ChangeLog
binutils/NEWS
binutils/doc/binutils.texi
binutils/nm.c
binutils/testsuite/binutils-all/nm-ver.s [new file with mode: 0644]
binutils/testsuite/binutils-all/nm.exp