summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/dll_init.cc
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2014-08-07 16:25:06 +0000
committerYaakov Selkowitz <yselkowi@redhat.com>2014-08-07 16:25:06 +0000
commitf9c956a1ff9f636a6a2cc201d1996231231a7c77 (patch)
tree4aea1df889ef15a7cecad98fbdcf353b34e1f690 /winsup/cygwin/dll_init.cc
parent85a7b23a5c35e0a1ea2b1c843a3afb4f58d1d798 (diff)
downloadcygnal-f9c956a1ff9f636a6a2cc201d1996231231a7c77.tar.gz
cygnal-f9c956a1ff9f636a6a2cc201d1996231231a7c77.tar.bz2
cygnal-f9c956a1ff9f636a6a2cc201d1996231231a7c77.zip
* common.din (__cxa_finalize): Export.
* dcrt0.cc (cygwin_atexit): Use d->handle with __cxa_atexit. * dll_init.cc (dll_list::detach): Use d->handle with __cxa_finalize. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Use 274 for __cxa_finalize as well.
Diffstat (limited to 'winsup/cygwin/dll_init.cc')
-rw-r--r--winsup/cygwin/dll_init.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/dll_init.cc b/winsup/cygwin/dll_init.cc
index 637f1cc8e..3fcb448b9 100644
--- a/winsup/cygwin/dll_init.cc
+++ b/winsup/cygwin/dll_init.cc
@@ -1,7 +1,7 @@
/* dll_init.cc
Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
- 2009, 2010, 2011, 2012, 2013 Red Hat, Inc.
+ 2009, 2010, 2011, 2012, 2013, 2014 Red Hat, Inc.
This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
@@ -401,7 +401,7 @@ dll_list::detach (void *retaddr)
exception protect;
/* Call finalize function if we are not already exiting */
if (!exit_state)
- __cxa_finalize (d);
+ __cxa_finalize (d->handle);
d->run_dtors ();
d->prev->next = d->next;
if (d->next)