[16/16] sparc: do not stack-protect the sigreturn handler.
Commit Message
From: Nick Alcock <nick.alcock@oracle.com>
This is called from the kernel and must not have a canary.
v2: New.
v3: Use $(no-stack-protector).
v4: Use inhibit_stack_protector.
---
sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c | 8 ++++++--
sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c | 4 +++-
2 files changed, 9 insertions(+), 3 deletions(-)
@@ -65,7 +65,9 @@ libc_hidden_def (__libc_sigaction)
#include <nptl/sigaction.c>
-static void
+static
+inhibit_stack_protector
+void
__rt_sigreturn_stub (void)
{
__asm__ ("mov %0, %%g1\n\t"
@@ -74,7 +76,9 @@ __rt_sigreturn_stub (void)
: "i" (__NR_rt_sigreturn));
}
-static void
+static
+inhibit_stack_protector
+void
__sigreturn_stub (void)
{
__asm__ ("mov %0, %%g1\n\t"
@@ -66,7 +66,9 @@ libc_hidden_def (__libc_sigaction)
#include <nptl/sigaction.c>
-static void
+static
+inhibit_stack_protector
+void
__rt_sigreturn_stub (void)
{
__asm__ ("mov %0, %%g1\n\t"