[Buildroot] [PATCH 1/1] package/libsigsegv: fix macro expansion error for RISC-V with musl

Thomas Petazzoni thomas.petazzoni at bootlin.com
Fri Oct 25 19:43:28 UTC 2019


On Fri, 25 Oct 2019 10:56:05 +0100
Mark Corbin <mark.corbin at embecosm.com> wrote:

> The expansion of the SIGSEGV_FAULT_STACKPOINTER macro fails when
> building for RISC-V with musl because REG_SP is not defined (it is
> defined for glibc). This patch just replaces REG_SP with the
> numerical register offset (which is 2 for the stack pointer).

REG_SP is defined in musl in:

  https://git.musl-libc.org/cgit/musl/tree/arch/riscv64/bits/reg.h

So I'm not sure I'm following the reasoning here.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list