diff options
author | Christopher Faylor <me@cgf.cx> | 2002-10-19 00:57:06 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-10-19 00:57:06 +0000 |
commit | a85860b5c868d7c3865e5d912916e51a55014ac7 (patch) | |
tree | a7f99789423abe1e850561f21ac783290c9d0195 /winsup/cygwin/shared.cc | |
parent | 824166e620dcffbd338795d6944281bc022e9ecf (diff) | |
download | newlib-a85860b5c868d7c3865e5d912916e51a55014ac7.zip newlib-a85860b5c868d7c3865e5d912916e51a55014ac7.tar.gz newlib-a85860b5c868d7c3865e5d912916e51a55014ac7.tar.bz2 |
* dcrt0.cc (dll_crt0_1): Initialize cygwin threads here only when not forking.
* fork.cc (fork_child): Initialize cygwin thread later in process to avoid
allocating memory for thread stacks.
* shared.cc (open_shared): Issue warning if NT and shared segment is relocated.
Diffstat (limited to 'winsup/cygwin/shared.cc')
-rw-r--r-- | winsup/cygwin/shared.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/shared.cc b/winsup/cygwin/shared.cc index 45d51c3..9bcefe3 100644 --- a/winsup/cygwin/shared.cc +++ b/winsup/cygwin/shared.cc @@ -104,6 +104,10 @@ open_shared (const char *name, int n, HANDLE &shared_h, DWORD size, shared_locat if (!shared) { +#ifdef DEBUGGING + if (wincap.is_winnt ()) + system_printf ("relocating shared object %s(%d) on Windows NT", name, n); +#endif /* Probably win95, so try without specifying the address. */ shared = (shared_info *) MapViewOfFileEx (shared_h, FILE_MAP_READ|FILE_MAP_WRITE, |