This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch i386]: Enable trampoline code for nx-protected stack Windows


On Sun, Apr 6, 2008 at 5:57 AM, Kai Tietz <ktietz70@googlemail.com> wrote:
> Hi,
>
>  Till MS uses the nx-protection feature of amd64 and itanium cpu's,
>  trampoline calls via stack caused an exception. This feature was
>  introduced by XP SP2 and newer oses have this feature too.
>  This patch uses the ENABLE_EXECUTE_STACK macro as netbsd does.
>
>  2008-04-05  Kai Tietz  <kai.tietz@onevision.com>
>
>         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
>         (MINGW_ENABLE_EXECUTE_STACK): New.
>         * libgcc2.c (ENABLE_EXECUTE_STACK): Add include file
>         windows.h for function declarations.
>
>  Is this patch ok for apply?
>

What testcases fail without this patch? On what versions of windows?
Thanks
Danny

>  Cheers,
>   Kai
>
>  --
>  | (\_/) This is Bunny. Copy and paste
>  | (='.'=) Bunny into your signature to help
>  | (")_(") him gain world domination
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]