]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
elf: Set has_local_dynsyms for forced local symbol
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 15 Jan 2026 01:11:50 +0000 (09:11 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 24 Jan 2026 04:10:36 +0000 (12:10 +0800)
commite4a41dc43a32ed4d43ca4ffbe099c14feb73c01d
treed410e5db75bbeec1037a76b561c40b1ae7d45bc1
parent0b7ca8278cd4caba66172622551f0840f82e905f
elf: Set has_local_dynsyms for forced local symbol

bfd_elf_link_record_dynamic_symbol may be called by mips backend after
a global symbol has been forced to local.  Set has_local_dynsyms to true
in this case.

bfd/

PR ld/33793
* elflink.c (bfd_elf_link_record_dynamic_symbol): Set
has_local_dynsyms to true for forced local symbol.

ld/

PR ld/33793
* testsuite/ld-mips-elf/mips-elf.exp: Run pr33793.
* testsuite/ld-mips-elf/pr33793.d: New file.
* testsuite/ld-mips-elf/pr33793.s: Likewise.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
bfd/elflink.c
ld/testsuite/ld-mips-elf/mips-elf.exp
ld/testsuite/ld-mips-elf/pr33793.d [new file with mode: 0644]
ld/testsuite/ld-mips-elf/pr33793.s [new file with mode: 0644]