PING^2: [PATCH v3] elf: Always honor the first definition in shared object and archive
Nick Clifton
nickc@redhat.com
Fri Apr 5 10:15:35 GMT 2024
Hi H.J.
>>> GCC doesn't put builtin function symbol references, which are defined in
>>> the shared C library, in the IR symbol table. When linker rescans shared
>>> objects and archives for newly added symbol references generated from the
>>> IR inputs, it skips definitions of the builtin functions in shared
>>> objects and archives.
>>>
>>> Add first_hash to elf_link_hash_table to track unreferenced definitions
>>> defined first in shared objects and archives. Always use them to resolve
>>> any references.
Approved - please apply.
Cheers
Nick
More information about the Binutils
mailing list