nm: Remove --with-symbol-versions
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 10 Aug 2020 12:17:28 +0000 (05:17 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 10 Aug 2020 12:17:41 +0000 (05:17 -0700)
commit9b0ac51b22d0cf900f39e17e615bb22e32720f6e
tree39644cd7c9bdaf1c6d530f22c56d9c21c422d8d1
parent40f3419a8150eac5855ef89bc2ce3532b0372e57
nm: Remove --with-symbol-versions

Since

commit 7e6e972f74aeac0ebdbd95a7f905d871cd2581de
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Mar 24 04:23:11 2020 -0700

    bfd: Display symbol version for nm -D

always displays symbol version for nm, remove --with-symbol-versions and
silently accept it for backward compatibility.

binutils/

PR binutils/26302
* nm.c (with_symbol_versions): Removed.
(long_option_values): Add OPTION_WITH_SYMBOL_VERSIONS.
(long_options): Update --with-symbol-versions entry.
(print_symbol): Remove the with_symbol_versions check.
(main): Add OPTION_WITH_SYMBOL_VERSIONS for backward
compatibility.
* doc/binutils.texi: Remove --with-symbol-versions.

ld/

PR binutils/26302
* testsuite/ld-elf/pr26302.nd: New file.
* testsuite/ld-elf/pr26302.ver: Likewise.
* testsuite/ld-elf/pr26302a.c: Likewise.
* testsuite/ld-elf/pr26302b.c: Likewise.
* testsuite/ld-elf/shared.exp: Run binutils/26302 tests.
binutils/ChangeLog
binutils/doc/binutils.texi
binutils/nm.c
ld/ChangeLog
ld/testsuite/ld-elf/pr26302.nd [new file with mode: 0644]
ld/testsuite/ld-elf/pr26302.ver [new file with mode: 0644]
ld/testsuite/ld-elf/pr26302a.c [new file with mode: 0644]
ld/testsuite/ld-elf/pr26302b.c [new file with mode: 0644]
ld/testsuite/ld-elf/shared.exp