This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 2.27] RISC-V: fix struct kernel_sigaction to match the kernel version [BZ #23069]
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Aurelien Jarno <aurelien at aurel32 dot net>
- Cc: <libc-alpha at sourceware dot org>, <libc-stable at sourceware dot org>, DJ Delorie <dj at redhat dot com>, Andrew Waterman <andrew at sifive dot com>, Darius Rad <darius at bluespec dot com>, Palmer Dabbelt <palmer at dabbelt dot com>
- Date: Tue, 17 Apr 2018 21:20:39 +0000
- Subject: Re: [PATCH 2.27] RISC-V: fix struct kernel_sigaction to match the kernel version [BZ #23069]
- References: <20180416204132.9251-1-aurelien@aurel32.net>
On Mon, 16 Apr 2018, Aurelien Jarno wrote:
> The RISC-V kernel doesn't define SA_RESTORER, hence the kernel version
> of struct sigaction doesn't have the sa_restorer field. The default
> kernel_sigaction.h therefore can't be used.
>
> This patch adds a RISC-V specific version of kernel_sigaction.h to fix
> the issue. This fixes for example the libnih testsuite.
I think there ought to be a relevant test added to the glibc testsuite (on
master and backported) if there isn't one already, unless it's hard to
test this issue for some reason.
--
Joseph S. Myers
joseph@codesourcery.com