package/musl: move riscv64 register index constant definitions
authorMark Corbin <mark@dibsco.co.uk>
Tue, 11 Feb 2020 15:14:53 +0000 (15:14 +0000)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 11 Feb 2020 22:31:54 +0000 (23:31 +0100)
commite3672b699f007e0191aaf77a6271fe1a96526651
tree99155219de67b05b877a98eb77c959918b54ae6c
parenta4dba4b40def74a5d0a3d8d0cd5b23ac64990c30
package/musl: move riscv64 register index constant definitions

The riscv64 build of libsigsegv using musl fails due to a missing
definition for REG_SP. This constant is used to index the __gregs
array in the ucontext_t structure.

This fix moves the musl defintion of REG_SP (and others) from
arch/riscv64/bits/reg.h to arch/riscv64/bits/signal.h
so that it is picked up correctly.

The patch was downloaded from upstream:
https://git.musl-libc.org/cgit/musl/commit/?id=329e79299daaa994b8e75941331a1093051ea5d9

Fixes:
http://autobuild.buildroot.org/results/8fcd5cb912e513ac08a81e3ee726e29ac22212bb/

Signed-off-by: Mark Corbin <mark@dibsco.co.uk>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/musl/0003-move-riscv64-register-index-constants-to-signal.h.patch [new file with mode: 0644]