[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)
committerBen Hutchings <benh@debian.org>
Fri, 30 Apr 2021 01:05:23 +0000 (02:05 +0100)
commit9d70106a0c29fda73567adc684f5a1f19c9e2eee
tree33e339665c00d5278ed61e90ead9c6437e2a781f
parent22109d0800ae46324128cd8400960a75fbd99a26
[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