Linker: If the type is pie the results should be an executable which entry point...
authorFrediano Ziglio <fziglio@redhat.com>
Tue, 22 Sep 2020 11:48:04 +0000 (12:48 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 22 Sep 2020 11:48:04 +0000 (12:48 +0100)
commit307f2595ddeebff38f95045b25be937e6b72eff2
tree2c297ff5d96a1a28674b0139b23b3f3f3952fe96
parentdb47f2458fe31df67026ed1c041812a968f96f7e
Linker: If the type is pie the results should be an executable which entry point should be an executable entry point, not a DLL one.

* emultempl/pe.em (set_entry_point): Only use the DLL entry point
for DLLs.
* emultempl/pep.em (set_entry_point): Likewise.
ld/ChangeLog
ld/emultempl/pe.em
ld/emultempl/pep.em