[PATCH] elf: Verify base symbol version works properly

H.J. Lu hjl.tools@gmail.com
Mon Nov 24 00:14:28 GMT 2025


On Sat, Nov 15, 2025 at 12:02 PM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> 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.

I am checking in this test.

-- 
H.J.


More information about the Binutils mailing list