[PATCH] x86: traverse loc_hash_table only if used
H.J. Lu
hjl.tools@gmail.com
Sat Nov 29 00:52:59 GMT 2025
Traverse x86 loc_hash_table only if it is used.
* elf32-i386.c (elf_i386_output_arch_local_syms): Traverse
loc_hash_table only if has_loc_hash_table is set.
* elf64-x86-64.c (elf_x86_64_output_arch_local_syms): Likewise.
* elfxx-x86.c (_bfd_elf_x86_get_local_sym_hash): Set
has_loc_hash_table.
(_bfd_x86_elf_late_size_sections): Traverse loc_hash_table only
if has_loc_hash_table is set.
* elfxx-x86.h (elf_x86_link_hash_table): Move plt0_pad_byte and
add has_loc_hash_table.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x86-traverse-loc_hash_table-only-if-used.patch
Type: text/x-patch
Size: 4218 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20251129/db420754/attachment.bin>
More information about the Binutils
mailing list