After preventing creating an import library for an exe when there are no exports...
authorJeremy Drake <sourceware-bugzilla@jdrake.com>
Wed, 30 Sep 2020 09:50:46 +0000 (10:50 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 30 Sep 2020 09:50:46 +0000 (10:50 +0100)
commit51dee44b37c4254e6b6a016b062c23b8e1f9ca33
tree9b30407380ff7a8dcd8be4061b67a71b8b8428ea
parente37c930f9e4ad20901493608f276011999efdf8f
After preventing creating an import library for an exe when there are no exports, to avoid a crash, it turned out that some projects expected to be able to create an import library for a dll with no exports, so more closely match the condition to the condition around initializing the dll name.

PR 26588
* emultempl/pe.em (_finish): Generate an import library for DLLs,
even if they have no exports.
* emultempl/pep.em (_finish): Likewise.
ld/ChangeLog
ld/emultempl/pe.em
ld/emultempl/pep.em