]> Git Repo - binutils.git/commit
elf_backend_archive_symbol_lookup
authorAlan Modra <[email protected]>
Mon, 12 Apr 2021 07:46:58 +0000 (17:16 +0930)
committerAlan Modra <[email protected]>
Mon, 12 Apr 2021 11:49:02 +0000 (21:19 +0930)
commitb585e899960202fbe3c137cbf765f75b088592fe
treefe63d180fe988f6a6cd54eea6706eac2ae792328
parentf5b10973531cdda7e1aba7496f70476b5146fcf8
elf_backend_archive_symbol_lookup

elf_backend_archive_symbol_lookup might be called when the linker hash
table has entries of type generic_link_hash_entry.  This happens for
instance when running the mmix target linker testsuite where the
output is mmo but input is elf64-mmix.

* elf-bfd.h (struct elf_backend_data): Return bfd_link_hash_entry*
from elf_backend_archive_symbol_lookup.
(_bfd_elf_archive_symbol_lookup): Return bfd_link_hash_entry*.
* elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Likewise.  Check
we have a ppc_hash_table before accessing ppc_link_hash_entry
fields.
* elflink.c (_bfd_elf_archive_symbol_lookup): Return
bfd_link_hash_entry*.
(elf_link_add_archive_symbols): Adjust to suit.
bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf64-ppc.c
bfd/elflink.c
This page took 0.026741 seconds and 4 git commands to generate.