diff options
author | Christopher Faylor <me@cgf.cx> | 2000-07-05 23:46:44 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-07-05 23:46:44 +0000 |
commit | 737a86d32fdaed1b8e29486d793a85896a5e0b95 (patch) | |
tree | a205999bafd7339f538b4bfa6d66da7a50675c60 /winsup/cygwin/lib | |
parent | 4e734b208bd377dde6cfc95a342dbf8940a8919c (diff) | |
download | newlib-737a86d32fdaed1b8e29486d793a85896a5e0b95.zip newlib-737a86d32fdaed1b8e29486d793a85896a5e0b95.tar.gz newlib-737a86d32fdaed1b8e29486d793a85896a5e0b95.tar.bz2 |
* dcrt0.cc (__cygwin_user_data): Initialize.
(dll_crt0_1): Eliminate user_data initialization.
(dll_crt0): Set up impure_ptr_ptr for older executables.
(cygwin_dll_init): Eliminate user_data initializations.
(__api_fatal): Don't check for user_data initialization.
* dll_init.cc (struct dll): Store entire contents of per_process rather than
just a pointer.
(add): Ditto.
(initOneDll): Don't check for user_data initialization.
(DllList::recordDll): Store contents of per_process argument.
(DllList::detachDll): Pass address of per_process field.
(DllList::initAll): Ditto.
(DllList::doGlobalDestructorsOfDlls): Ditto.
(DllListIterator::operator *): Ditto.
(dll_dllcrt0): Default to __cygwin_user_data if arg is NULL.
* include/sys/cygwin.h: Reorganize per_process to eliminate obsolete fields and
accomodate new way of initializing.
* lib/_cygwin_crt0_common: Initialize _impure_ptr from
__cygwin_user_data.impure_ptr.
Diffstat (limited to 'winsup/cygwin/lib')
-rw-r--r-- | winsup/cygwin/lib/_cygwin_crt0_common.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/lib/_cygwin_crt0_common.cc b/winsup/cygwin/lib/_cygwin_crt0_common.cc index ca249c6..676d466 100644 --- a/winsup/cygwin/lib/_cygwin_crt0_common.cc +++ b/winsup/cygwin/lib/_cygwin_crt0_common.cc @@ -48,7 +48,7 @@ _cygwin_crt0_common (MainFunc f) __cygwin_user_data.ctors = &__CTOR_LIST__; __cygwin_user_data.dtors = &__DTOR_LIST__; __cygwin_user_data.envptr = &environ; - __cygwin_user_data.impure_ptr_ptr = &_impure_ptr; + _impure_ptr = __cygwin_user_data.impure_ptr; __cygwin_user_data.main = f; __cygwin_user_data.premain[0] = cygwin_premain0; __cygwin_user_data.premain[1] = cygwin_premain1; |