Fix a segfault when creating an import library with 0 exports.
authorJeremy Drake <sourceware-bugzilla@jdrake.com>
Fri, 11 Sep 2020 16:51:16 +0000 (17:51 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 11 Sep 2020 16:51:16 +0000 (17:51 +0100)
commit9cdc5bacddc3776a455cc918e034b01dfb31c75b
treeaeef3c49bbbd8d634aa5066575016f04717ff084
parentad570dd76c3578bc5aaae0c2029ff43fd40ef9cd
Fix a segfault when creating an import library with 0 exports.

PR 26588
* emultempl/pe.em (_finish): Only generate a import library if not
exporting relocs.
* emultempl/pep.em: Likewise.
ld/ChangeLog
ld/emultempl/pe.em
ld/emultempl/pep.em