COFF linker segmentation faults
authorAlan Modra <amodra@gmail.com>
Tue, 28 May 2019 08:22:42 +0000 (17:52 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 28 May 2019 08:27:51 +0000 (17:57 +0930)
commit0f4a61b42002f568473f821f00dd240413beadd0
tree84ac5fbab6542d7264b76a2292390e0968cf3c01
parent94667ab146a0c94f87f3d9aa7d1c819663b28338
COFF linker segmentation faults

A plugin can change the element, so call the generic
bfd_link_add_symbols.

PR 24596
* cofflink.c (coff_link_check_archive_element): Don't assume
element is a coff object file after calling add_archive_element.
bfd/ChangeLog
bfd/cofflink.c