]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
elf: Keep only one '@' for undefined versioned symbols
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 22 Aug 2020 15:31:53 +0000 (08:31 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 22 Aug 2020 15:32:02 +0000 (08:32 -0700)
commit3f2e9699234ca31d083bc93ea6e03903f10baeaf
treebfe2e473c96a1b7c9cc4e3f9ea8bb90d2d946521
parentd19c3068ab17598662fe562e96bc1943b2b49736
elf: Keep only one '@' for undefined versioned symbols

The symbol string table in the .symtab section is optional and cosmetic.
Keep only one '@' for undefined versioned symbols, which are defined in
shared objects, in the symbol string table.  Update "nm -D" to display
only one '@' for undefined versioned symbols.

bfd/

PR ld/26382
* elflink.c (elf_link_output_symstrtab): Keep only one '@' for
versioned symbols, which are defined in shared objects, in
symbol string table.

binutils/

PR ld/26382
* nm.c (print_symname): Display only one '@' for undefined
versioned symbols.
* doc/binutils.texi: Update nm version information.

ld/

PR ld/26382
* testsuite/ld-elf/pr26302.nd: Updated.
* testsuite/ld-elf/pr26302.rd: New file.
* testsuite/ld-elf/shared.exp: Add a test for readelf -sW.
bfd/ChangeLog
bfd/elflink.c
binutils/ChangeLog
binutils/doc/binutils.texi
binutils/nm.c
ld/ChangeLog
ld/testsuite/ld-elf/pr26302.nd
ld/testsuite/ld-elf/pr26302.rd [new file with mode: 0644]
ld/testsuite/ld-elf/shared.exp