Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-08-13 11:35:50 +0400
committerCorinna Vinschen <corinna@vinschen.de>2009-08-13 11:35:50 +0400
commitce5eb135a299c36b9c929351b967de793809f895 (patch)
tree7309c3833cd20103715b93163be19ebce5abf14d /winsup/cygwin/cxx.cc
parent61189f19de6175e82cdb43c2ff5ed50f953ba3fa (diff)
* cxx.cc (default_cygwin_cxx_malloc): Enhance commenting.
* dll_init.cc (dll_dllcrt0_1): Likewise. * dlfcn.cc (dlopen): Prevent dlopen()'d DLL from installing any cxx malloc overrides. * include/cygwin/cygwin_dll.h (__dynamically_loaded): New variable. * lib/_cygwin_crt0_common.cc (_cygwin_crt0_common): Check it and only install cxx malloc overrides when statically loaded. Extend comments.
Diffstat (limited to 'winsup/cygwin/cxx.cc')
-rw-r--r--winsup/cygwin/cxx.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/cxx.cc b/winsup/cygwin/cxx.cc
index 523fb4268..0faeaf7ee 100644
--- a/winsup/cygwin/cxx.cc
+++ b/winsup/cygwin/cxx.cc
@@ -87,7 +87,10 @@ __cxa_guard_release ()
}
/* These routines are made available as last-resort fallbacks
- for the application. Should not be used in practice. */
+ for the application. Should not be used in practice; the
+ entries in this struct get overwritten by each DLL as it
+ is loaded, and libstdc++ will override the whole lot first
+ thing of all. */
struct per_process_cxx_malloc default_cygwin_cxx_malloc =
{