Fix an invalid free called when attempting to link a COFF object against an ELF archi...
authorNick Clifton <nickc@redhat.com>
Wed, 1 Nov 2017 11:35:42 +0000 (11:35 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 1 Nov 2017 11:35:42 +0000 (11:35 +0000)
commitee357486aa87b17782111295c5e7bd4ac9e6970f
tree26750ac53e7ea4c06e31a9230d11fce21678126f
parent4070243b5c1f66a36dd43a7b722e991ac9fc40e1
Fix an invalid free called when attempting to link a COFF object against an ELF archive with --no-keep-memory enabled.

PR 22369
* coffgen.c (_bfd_coff_free_symbols): Fail if called on a non-COFF
file.
* cofflink.c (coff_link_check_archive_element): Skip non-COFF
members of an archive.
bfd/ChangeLog
bfd/coffgen.c
bfd/cofflink.c
binutils/doc/binutils.texi