Don't segfault on discarded section dynsyms
authorAlan Modra <amodra@gmail.com>
Wed, 29 Jul 2020 08:04:18 +0000 (17:34 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 29 Jul 2020 08:09:54 +0000 (17:39 +0930)
commit4d68fd750fa0ce9de7a5245f9eff539f31a95fb6
tree12a79a0a26572122cebbb39015714597fd2daac6
parent5987401fcbc9933808fa0d84d1b01c93356c39a1
Don't segfault on discarded section dynsyms

We get lots of errors before we get to this code, but let's not
segfault.

* elflink.c (bfd_elf_final_link): Don't segfault on local dynsyms
defined in excluded sections.
bfd/ChangeLog
bfd/elflink.c