diff --git a/patches/ntdll-Signal_Handler/0001-ntdll-Avoid-stack-protector-frame-in-signal-handler-.patch b/patches/ntdll-Signal_Handler/0001-ntdll-Avoid-stack-protector-frame-in-signal-handler-.patch index a83ff948..2afae841 100644 --- a/patches/ntdll-Signal_Handler/0001-ntdll-Avoid-stack-protector-frame-in-signal-handler-.patch +++ b/patches/ntdll-Signal_Handler/0001-ntdll-Avoid-stack-protector-frame-in-signal-handler-.patch @@ -1,15 +1,15 @@ -From 340e2dae3a619b3f1d58aabc2f0e4af4e8e07e56 Mon Sep 17 00:00:00 2001 +From b4d01c5332cd076e5e7f98842d5811d5f44c8a05 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Sun, 20 Aug 2017 17:22:20 +0200 Subject: [PATCH] ntdll: Avoid stack protector frame in signal handler functions. --- - dlls/ntdll/signal_i386.c | 27 +++++++++++++++++---------- - 1 file changed, 17 insertions(+), 10 deletions(-) + dlls/ntdll/signal_i386.c | 29 ++++++++++++++++++----------- + 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/dlls/ntdll/signal_i386.c b/dlls/ntdll/signal_i386.c -index 1645c9c7d..a86fcf256 100644 +index 1645c9c7d..751ba4264 100644 --- a/dlls/ntdll/signal_i386.c +++ b/dlls/ntdll/signal_i386.c @@ -96,6 +96,13 @@ typedef struct @@ -53,6 +53,15 @@ index 1645c9c7d..a86fcf256 100644 { WORD fs, gs; void *stack = init_handler( sigcontext, &fs, &gs ); +@@ -1958,7 +1965,7 @@ static BOOL handle_interrupt( unsigned int interrupt, ucontext_t *sigcontext, st + * Handler for SIGSEGV and related errors. Used only during the initialization + * of the process to handle virtual faults. + */ +-static void segv_handler_early( int signal, siginfo_t *siginfo, void *sigcontext ) ++static void SIGNALFUNC segv_handler_early( int signal, siginfo_t *siginfo, void *sigcontext ) + { + WORD fs, gs; + ucontext_t *context = sigcontext; @@ -1982,7 +1989,7 @@ static void segv_handler_early( int signal, siginfo_t *siginfo, void *sigcontext * * Handler for SIGSEGV and related errors.