[PATCH 4/4] elf: Return error on unsorted symbol table if not allowed
Alan Modra
amodra@gmail.com
Tue Sep 23 12:02:44 GMT 2025
On Tue, Sep 23, 2025 at 10:24:53AM +0800, H.J. Lu wrote:
> 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.
OK.
--
Alan Modra
More information about the Binutils
mailing list