* emultempl/pe.em (set_entry_point): Only use the DLL entry point
for DLLs.
* emultempl/pep.em (set_entry_point): Likewise.
+2020-09-22 Frediano Ziglio <fziglio@redhat.com>
+
+ * emultempl/pe.em (set_entry_point): Only use the DLL entry point
+ for DLLs.
+ * emultempl/pep.em (set_entry_point): Likewise.
+
2020-09-16 Mikael Pettersson <mikpelinux@gmail.com>
* testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIE on sparc.
/* Entry point name for arbitrary subsystem numbers. */
static const char default_entry[] = "mainCRTStartup";
- if (bfd_link_pic (&link_info) || dll)
+ if (bfd_link_dll (&link_info) || dll)
{
#if defined (TARGET_IS_i386pe)
entry = "DllMainCRTStartup@12";
/* Entry point name for arbitrary subsystem numbers. */
static const char default_entry[] = "mainCRTStartup";
- if (bfd_link_pic (&link_info) || dll)
+ if (bfd_link_dll (&link_info) || dll)
{
entry = "DllMainCRTStartup";
}