]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Use version index 1 for defined symbols
authorMichael Matz <matz@suse.de>
Wed, 19 Nov 2025 15:32:51 +0000 (16:32 +0100)
committerMichael Matz <matz@suse.de>
Mon, 24 Nov 2025 14:22:00 +0000 (15:22 +0100)
commit78894bcb483d45c4d7be5ef9499ec017a9727079
treebdd548721d14c80e7e81e86c4caae9695e98225c
parent365cf9bd156c5676cf289b695460fda5c69ceb60
Use version index 1 for defined symbols

It's reasonable to use version index 0 for undefined
symbols, so let's continue doing that.  For defined (global)
symbols that aren't otherwise versioned continue using
VER_NDX_GLOBAL (partly reverting behaviour introduced in
commit f685e395).

bfd/
PR ld/33577
* elflink.c (elf_link_output_extsym): Don't set noversion
for defined syms.

ld/
PR ld/33577
* ld-elfvers/vers16.dsym: Add back the "Base" version for
defined syms.
bfd/elflink.c
ld/testsuite/ld-elfvers/vers16.dsym