diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-08-13 07:35:50 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-08-13 07:35:50 +0000 |
commit | ce5eb135a299c36b9c929351b967de793809f895 (patch) | |
tree | 7309c3833cd20103715b93163be19ebce5abf14d /winsup/cygwin/cxx.cc | |
parent | 61189f19de6175e82cdb43c2ff5ed50f953ba3fa (diff) | |
download | cygnal-ce5eb135a299c36b9c929351b967de793809f895.tar.gz cygnal-ce5eb135a299c36b9c929351b967de793809f895.tar.bz2 cygnal-ce5eb135a299c36b9c929351b967de793809f895.zip |
* 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.cc | 5 |
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 = { |