Fix null pointer dereferences when using a link built with clang.
authorNick Clifton <nickc@redhat.com>
Tue, 4 Apr 2017 10:23:36 +0000 (11:23 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 4 Apr 2017 10:23:36 +0000 (11:23 +0100)
commitad32986fdf9da1c8748e47b8b45100398223dba8
tree33e2a97f36b9686f76584570d8df47eefcdcd059
parentdb3a1dc7c9404e203c54576db3335e69d995e83e
Fix null pointer dereferences when using a link built with clang.

PR binutils/21342
* elflink.c (_bfd_elf_define_linkage_sym): Prevent null pointer
dereference.
(bfd_elf_final_link): Only initialize the extended symbol index
section if there are extended symbol tables to list.
bfd/ChangeLog
bfd/elflink.c