PR25022 testcase segfault for generic ELF linker targets
authorAlan Modra <amodra@gmail.com>
Tue, 28 Jul 2020 05:19:07 +0000 (14:49 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 28 Jul 2020 07:26:14 +0000 (16:56 +0930)
commit67411cbf63a0e841ac6801bf59c854fed8b8dd80
treebe0ab703152c22ed7f341aa5520aece81bc155ae
parentf437dadd89944254165d076f55f29f7290c00aed
PR25022 testcase segfault for generic ELF linker targets

Even a testcase that is expected to fail shouldn't segfault.

* elf.c (assign_section_numbers): Comment.  Don't segfault on
discarded sections when setting linked-to section for generic
ELF linker.
* elflink.c (bfd_elf_match_symbols_in_sections): Allow NULL info.
bfd/ChangeLog
bfd/elf.c
bfd/elflink.c