* dcrt0.cc (disable_dep): Disable. Explain why.

(dll_crt0_0): Disable calling disable_dep.  Explain why.
This commit is contained in:
Corinna Vinschen 2009-03-04 11:45:58 +00:00
parent 538fc09416
commit 06281845fb
2 changed files with 15 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2009-03-04 Corinna Vinschen <corinna@vinschen.de>
* dcrt0.cc (disable_dep): Disable. Explain why.
(dll_crt0_0): Disable calling disable_dep. Explain why.
2009-03-03 Corinna Vinschen <corinna@vinschen.de> 2009-03-03 Corinna Vinschen <corinna@vinschen.de>
* net.cc: Include asm/byteorder.h. * net.cc: Include asm/byteorder.h.

View File

@ -623,6 +623,10 @@ child_info_spawn::handle_spawn ()
fixup_lockf_after_exec (); fixup_lockf_after_exec ();
} }
#if 0
/* Setting the TS-aware flag in the application's PE header is sufficient.
Just keep this in as a reminder. */
static DEP_SYSTEM_POLICY_TYPE dep_system_policy = (DEP_SYSTEM_POLICY_TYPE) -1; static DEP_SYSTEM_POLICY_TYPE dep_system_policy = (DEP_SYSTEM_POLICY_TYPE) -1;
static void static void
@ -647,6 +651,7 @@ disable_dep ()
if (ppolicy > 0 && !perm && !SetProcessDEPPolicy (0)) if (ppolicy > 0 && !perm && !SetProcessDEPPolicy (0))
debug_printf ("SetProcessDEPPolicy: %E"); debug_printf ("SetProcessDEPPolicy: %E");
} }
#endif
void __stdcall void __stdcall
dll_crt0_0 () dll_crt0_0 ()
@ -712,10 +717,11 @@ dll_crt0_0 ()
events_init (); events_init ();
tty_list::init_session (); tty_list::init_session ();
/* FIXME: This is hopefully a temporary hack, at least until the support #if 0
case at Microsoft has been closed one way or the other. /* Setting the TS-aware flag in the application's PE header is sufficient.
Just keep this in as a reminder. */
The disable_dep function disables DEP for all Cygwin processes if /* The disable_dep function disables DEP for all Cygwin processes if
the process runs on a Windows Server 2008 with Terminal Services the process runs on a Windows Server 2008 with Terminal Services
installed. This combination (TS+DEP) breaks *some* Cygwin installed. This combination (TS+DEP) breaks *some* Cygwin
applications. The Terminal Service specific DLL tsappcmp.dll applications. The Terminal Service specific DLL tsappcmp.dll
@ -732,6 +738,7 @@ dll_crt0_0 ()
Idle idea: Adding EXECUTE protection to all text segment pages? */ Idle idea: Adding EXECUTE protection to all text segment pages? */
if (wincap.ts_has_dep_problem ()) if (wincap.ts_has_dep_problem ())
disable_dep (); disable_dep ();
#endif
debug_printf ("finished dll_crt0_0 initialization"); debug_printf ("finished dll_crt0_0 initialization");
} }