[PATCH] mips: Assert local dynamic symbol counts only with dynamic sections

H.J. Lu hjl.tools@gmail.com
Thu Jan 15 02:46:46 GMT 2026


Since there are dynamic symbols only if there are dynamic sections,
assert local dynamic symbol counts only if there are dynamic
sections.

bfd/

PR ld/33793
* elfxx-mips.c (mips_elf_sort_hash_table): Assert local dynamic
symbol counts only if there are dynamic sections.

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.


-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mips-Assert-local-dynamic-symbol-counts-only-with-dy.patch
Type: text/x-patch
Size: 3759 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260115/9a627b94/attachment-0001.bin>


More information about the Binutils mailing list