PR26103, Assertion failure with symbols defined in link-once sections
authorAlan Modra <amodra@gmail.com>
Mon, 15 Jun 2020 02:40:06 +0000 (12:10 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 15 Jun 2020 02:40:06 +0000 (12:10 +0930)
commit75cfe082c067db0b12fb982de0833309e454a8e2
tree849f43dd0057e20e947e5f5fd8b7f80c7382e645
parentcda58d5f970d0257749d549aee9c0e2bfb4a1fe8
PR26103, Assertion failure with symbols defined in link-once sections

PR 26103
* elflink.c (elf_link_add_archive_symbols): Exclude undefined
symbols that were defined in discarded sections.
* cofflink.c (coff_link_check_archive_element): Likewise.
(coff_link_add_symbols): Set indx to -3 for symbols defined in
discarded sections.
(_bfd_coff_write_global_sym): Don't emit such symbols.
libcoff-in.h (struct coff_link_hash_entry): Update indx comment.
libcoff.h: Regenerate.
bfd/ChangeLog
bfd/cofflink.c
bfd/elflink.c
bfd/libcoff-in.h
bfd/libcoff.h