mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 18:08:24 +08:00
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.
This commit is contained in:

committed by
Nick Clifton

parent
db47f2458f
commit
307f2595dd
@ -1,3 +1,9 @@
|
||||
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.
|
||||
|
@ -571,7 +571,7 @@ set_entry_point (void)
|
||||
/* 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";
|
||||
|
@ -537,7 +537,7 @@ set_entry_point (void)
|
||||
/* 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";
|
||||
}
|
||||
|
Reference in New Issue
Block a user