[klibc] signal: Add sysconfig setting to force SA_SIGINFO on
Origin: https://git.kernel.org/pub/scm/libs/klibc/klibc.git/commit/?id=
2a2a0b6b79c2470f529daabd5c193f58fe188337
On alpha, arm, i386, m68k, powerpc, s390, sh, and sparc (32-bit), the
kernel sets up the signal stack frame differently depending on the
SA_SIGINFO flag, not whether the sigaction() or rt_sigaction() system
call was used to install the handler.
On alpha and sparc, we are going to start providing our own restorer
that will call rt_sigaction(), so will need to ensure this flag is
always set.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Name 0002-klibc-signal-Add-sysconfig-setting-to-force-SA_SIGIN.patch
[klibc] signal: Note another reason to define _KLIBC_NEEDS_SA_RESTORER
Origin: https://git.kernel.org/pub/scm/libs/klibc/klibc.git/commit/?id=
ccc5c14c44f3fa76f61b8aae947cf3b853a6c833
On some architectures we should set SA_RESTORER to avoid the need for
a signal trampoline and executable stack.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Name 0001-klibc-signal-Note-another-reason-to-define-_KLIBC_NE.patch
[klibc] alpha: Fix definitions of _NSIG and struct sigaction
Origin: https://git.kernel.org/pub/scm/libs/klibc/klibc.git/commit/?id=
1cd11aaed1dece773c6b1ce2e99a0fe98b51321e
We use the RT signals API, but include the kernel UAPI header
that defines _NSIG and struct sigaction for the old API.
Copy over all the definitions and fix those two.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Name 0001-klibc-alpha-Fix-definitions-of-_NSIG-and-struct-siga.patch