elf: Check symbol version without any symbols
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 24 Jan 2022 16:20:13 +0000 (08:20 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 31 Jan 2022 22:04:33 +0000 (14:04 -0800)
commit4bed253f22c9bb9b0823a78f310afeff4f25bb40
treead1c7fec323513f087d2caf6f28d7ce2deb77703
parente1dbfc17c5305eef8f021c1baa703151bffc1490
elf: Check symbol version without any symbols

VER_FLG_WEAK doesn't indicate that all symbol references of the symbol
version have STB_WEAK.  VER_FLG_WEAK indicates a weak symbol version
definition with no symbols associated with it.  It is used to verify
the existence of a particular implementation without any symbol references
to the weak symbol version.

PR ld/24718
* testsuite/ld-elf/pr24718-1.d: New file.
* testsuite/ld-elf/pr24718-1.s: Likewise.
* testsuite/ld-elf/pr24718-1.t: Likewise.
ld/testsuite/ld-elf/pr24718-1.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr24718-1.s [new file with mode: 0644]
ld/testsuite/ld-elf/pr24718-1.t [new file with mode: 0644]