[PATCH 4/4] elf: Return error on unsorted symbol table if not allowed

H.J. Lu hjl.tools@gmail.com
Tue Sep 23 02:24:53 GMT 2025


Normally ELF symbol table should be sorted, i.e., local symbols precede
global symbols.  Irix 6 is an exception and its elf_bad_symtab is set
to true.  Issue an error if elf_bad_symtab is false and symbol table is
unsorted.

PR ld/33450
* elflink.c (set_symbol_value): Change return type to bool and
return false on error.  Issue an error on unsorted symbol table
if not allowed.
(elf_link_input_bfd): Return false if set_symbol_value reurns
false.


-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-elf-Return-error-on-unsorted-symbol-table-if-not-all.patch
Type: text/x-patch
Size: 2440 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20250923/c77c2c31/attachment.bin>


More information about the Binutils mailing list