aboutsummaryrefslogtreecommitdiff
path: root/ld/pe-dll.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-08-06 14:32:08 +0000
committerNick Clifton <nickc@redhat.com>2007-08-06 14:32:08 +0000
commit880383ca963721a269a8b99f41fa26e711218740 (patch)
treef209b80709a14b1988ab4df4f4060ef26857454d /ld/pe-dll.c
parentd0913de2b8aefa914acfd6e0e3a8cbfbd536f721 (diff)
downloadfsf-binutils-gdb-880383ca963721a269a8b99f41fa26e711218740.zip
fsf-binutils-gdb-880383ca963721a269a8b99f41fa26e711218740.tar.gz
fsf-binutils-gdb-880383ca963721a269a8b99f41fa26e711218740.tar.bz2
* emultempl/pep.em: (pep_enable_stdcall_fixup): Set to value 1.
(gld_xxx_recognized_file): Use pep_bfd_is_dll for detection of shared objects. * pe-dll.c: (autofilter_symbollist_i386): Define set for amd64 mingw target.
Diffstat (limited to 'ld/pe-dll.c')
-rw-r--r--ld/pe-dll.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ld/pe-dll.c b/ld/pe-dll.c
index 16850b6..cdbfa70 100644
--- a/ld/pe-dll.c
+++ b/ld/pe-dll.c
@@ -203,6 +203,14 @@ static const autofilter_entry_type autofilter_symbollist_i386[] =
{ STRING_COMMA_LEN (".text") },
/* Entry point symbols, and entry hooks. */
{ STRING_COMMA_LEN ("cygwin_crt0") },
+#ifdef pe_use_x86_64
+ { STRING_COMMA_LEN ("DllMain") },
+ { STRING_COMMA_LEN ("DllEntryPoint") },
+ { STRING_COMMA_LEN ("DllMainCRTStartup") },
+ { STRING_COMMA_LEN ("_cygwin_dll_entry") },
+ { STRING_COMMA_LEN ("_cygwin_crt0_common") },
+ { STRING_COMMA_LEN ("_cygwin_noncygwin_dll_entry") },
+#else
{ STRING_COMMA_LEN ("DllMain@12") },
{ STRING_COMMA_LEN ("DllEntryPoint@0") },
{ STRING_COMMA_LEN ("DllMainCRTStartup@12") },
@@ -210,6 +218,7 @@ static const autofilter_entry_type autofilter_symbollist_i386[] =
{ STRING_COMMA_LEN ("_cygwin_crt0_common@8") },
{ STRING_COMMA_LEN ("_cygwin_noncygwin_dll_entry@12") },
{ STRING_COMMA_LEN ("cygwin_attach_dll") },
+#endif
{ STRING_COMMA_LEN ("cygwin_premain0") },
{ STRING_COMMA_LEN ("cygwin_premain1") },
{ STRING_COMMA_LEN ("cygwin_premain2") },