PR24337, segfault in _bfd_elf_rela_local_sym, again
Reverts commit 1ff31e13, fixing the problem more generally. There are likely other place that will segfault on a NULL section. PR 24337 * elf.c (_bfd_elf_rela_local_sym): Revert last change. (_bfd_elf_rel_local_sym): Likewise. * elflink.c (elf_link_input_bfd): Use bfd_und_section for section of symbols with unrecognized shndx.
Showing with 14 additions and 8 deletions