0 | 0 |
From: Ben Hutchings <ben@decadent.org.uk>
|
1 | 1 |
Date: Thu, 30 Apr 2020 03:38:34 +0100
|
2 | 2 |
Subject: [klibc] s390: Set sa_restorer for signals and disable executable stack
|
3 | |
Origin: https://git.kernel.org/pub/scm/libs/klibc/klibc.git/commit?id=89d59ccf2d6ffede32c32b26eda57c24ec33b275
|
4 | 3 |
|
5 | 4 |
Add a __sigreturn stub and point sa_restorer to it by default, so
|
6 | 5 |
that the kernel doesn't create stack trampolines for signal return.
|
|
26 | 25 |
+
|
27 | 26 |
#endif /* _KLIBC_ARCHCONFIG_H */
|
28 | 27 |
diff --git a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def
|
29 | |
index 461d9bf6..16faabcb 100644
|
|
28 |
index 461d9bf6..aa8a8e57 100644
|
30 | 29 |
--- a/usr/klibc/SYSCALLS.def
|
31 | 30 |
+++ b/usr/klibc/SYSCALLS.def
|
32 | 31 |
@@ -228,6 +228,7 @@ int sigprocmask(int, const sigset_t *, sigset_t *);
|
33 | 32 |
*/
|
34 | 33 |
<sh,sparc,alpha,ppc,sparc64> int sigsuspend::__sigsuspend_s(sigset_t);
|
35 | 34 |
<arm,frv,i386,m68k,mn10300,s390,s390x> int sigsuspend::__sigsuspend_xxs(int, int, sigset_t);
|
36 | |
+<s390> void sigreturn::__sigreturn();
|
|
35 |
+<s390,s390x> void sigreturn::__sigreturn();
|
37 | 36 |
#endif
|
38 | 37 |
int kill(pid_t, int);
|
39 | 38 |
<?> unsigned int alarm(unsigned int);
|