This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] ld: do not export __dso_handle for PE
- From: Yaakov Selkowitz <yselkowi at redhat dot com>
- To: binutils at sourceware dot org
- Date: Mon, 11 Aug 2014 14:22:59 -0500
- Subject: [PATCH] ld: do not export __dso_handle for PE
- Authentication-results: sourceware.org; auth=none
* pe-dll.c (autofilter_symbollist_i386): Add __dso_handle.
---
This is necessary for adding __cxa_atexit support for Cygwin in GCC
without exporting __dso_handle from every DLL. (On ELF platforms,
__dso_handle is marked hidden visibility, but we don't have support
for that yet on PE platforms.)
ld/pe-dll.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ld/pe-dll.c b/ld/pe-dll.c
index d38f30d..61d8fa5 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 }
};
--
1.8.5.5