[PATCH] elf: Verify base symbol version works properly

H.J. Lu hjl.tools@gmail.com
Sat Nov 15 04:02:09 GMT 2025


Add a testcase to verify that VER_NDX_GLOBAL can be used with

asm (".symver foo_base, foo@");

to create the base version to provide an unversioned compatible symbol.

PR ld/33577
* testsuite/ld-elfvers/pass.out: New file.
* testsuite/ld-elfvers/pr33577-unversioned.c: Likewise.
* testsuite/ld-elfvers/pr33577-unversioned.rd: Likewise.
* testsuite/ld-elfvers/pr33577-versioned.c: Likewise.
* testsuite/ld-elfvers/pr33577-versioned.rd: Likewise.
* testsuite/ld-elfvers/pr33577.map: Likewise.
* testsuite/ld-elfvers/pr33577a.c: Likewise.
* testsuite/ld-elfvers/pr33577b.c: Likewise.
* testsuite/ld-elfvers/vers.exp: Run ld/33577 tests.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-elf-Verify-base-symbol-version-works-properly.patch
Type: text/x-patch
Size: 7753 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20251115/2edf06db/attachment.bin>


More information about the Binutils mailing list