From 63e1777c6c20434c9909eb0f235b14f623d1f914 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Wed, 13 Aug 2014 11:43:28 +0100 Subject: [PATCH] This is necessary for adding __cxa_atexit support for Cygwin in GCC without exporting __dso_handle from every DLL. * pe-dll.c (autofilter_entry_type autofilter_symbollist_i386): Add __dso_handle. --- ld/ChangeLog | 5 +++++ ld/pe-dll.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ld/ChangeLog b/ld/ChangeLog index f62813e9372..fa7cab611c0 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2014-08-13 Yaakov Selkowitz + + * pe-dll.c (autofilter_entry_type autofilter_symbollist_i386): Add + __dso_handle. + 2014-08-13 Alan Modra * ldlang.c (open_input_bfds): Don't use bfd_elf_get_dyn_lib_class. diff --git a/ld/pe-dll.c b/ld/pe-dll.c index d38f30da692..61d8fa5c7ee 100644 --- a/ld/pe-dll.c +++ b/ld/pe-dll.c @@ -235,6 +235,7 @@ static const autofilter_entry_type autofilter_symbollist_i386[] = { STRING_COMMA_LEN ("_impure_ptr") }, { STRING_COMMA_LEN ("_fmode") }, { STRING_COMMA_LEN ("environ") }, + { STRING_COMMA_LEN ("__dso_handle") }, { NULL, 0 } }; -- 2.30.2