[klibc] signal: Add sysconfig setting to force SA_SIGINFO on
authorBen Hutchings <ben@decadent.org.uk>
Tue, 25 Aug 2020 00:05:28 +0000 (01:05 +0100)
committerThorsten Glaser <tg@mirbsd.de>
Wed, 26 May 2021 22:12:10 +0000 (23:12 +0100)
commitc7bef662497fefeb706ee8cc082774f2280e523b
treeec6ded2b60a8b089e1c40d081448bd4d42e7983a
parentd19c327f645aef9939f2f0b08fb64e12cf45ea43
[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
usr/include/klibc/sysconfig.h
usr/klibc/sigaction.c