diff options
| author | Ross Burton <ross.burton@arm.com> | 2025-04-25 12:43:19 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-29 09:55:31 +0100 |
| commit | f2dc1e086ce36c34369146dce120e3552b6fe190 (patch) | |
| tree | f5b88d73ee23a3bc2fb25a7f556cb718a4139f18 | |
| parent | f2bef9fa5f6a904cf37f138f7bd11f5a214ac6b7 (diff) | |
| download | poky-f2dc1e086ce36c34369146dce120e3552b6fe190.tar.gz | |
libunwind: refresh ppc32/musl patch
There was a precedence order problem in the patch so update to the latest
version in the pull request.
(From OE-Core rev: c64c4ca0c72f6fde3b1d5cfea5803ddf16550fd5)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-support/libunwind/libunwind/0005-Handle-musl-on-PPC32.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/recipes-support/libunwind/libunwind/0005-Handle-musl-on-PPC32.patch b/meta/recipes-support/libunwind/libunwind/0005-Handle-musl-on-PPC32.patch index 7cad7a5b75..63d3c85de4 100644 --- a/meta/recipes-support/libunwind/libunwind/0005-Handle-musl-on-PPC32.patch +++ b/meta/recipes-support/libunwind/libunwind/0005-Handle-musl-on-PPC32.patch | |||
| @@ -30,9 +30,9 @@ index 9444cbb8..5e94ed8a 100644 | |||
| 30 | 30 | ||
| 31 | +/* glibc and musl disagree over the layout of this struct */ | 31 | +/* glibc and musl disagree over the layout of this struct */ |
| 32 | +#ifdef __GLIBC__ | 32 | +#ifdef __GLIBC__ |
| 33 | +#define _UC_MCONTEXT_REGS(x) x->uc_mcontext.uc_regs | 33 | +#define _UCONTEXT_UC_REGS(uc) uc->uc_mcontext.uc_regs |
| 34 | +#else | 34 | +#else |
| 35 | +#define _UC_MCONTEXT_REGS(x) x->uc_regs | 35 | +#define _UCONTEXT_UC_REGS(uc) uc->uc_regs |
| 36 | +#endif | 36 | +#endif |
| 37 | + | 37 | + |
| 38 | static void * | 38 | static void * |
| @@ -43,7 +43,7 @@ index 9444cbb8..5e94ed8a 100644 | |||
| 43 | if ((unsigned) (reg - UNW_PPC32_R0) < 32) | 43 | if ((unsigned) (reg - UNW_PPC32_R0) < 32) |
| 44 | #if defined(__linux__) | 44 | #if defined(__linux__) |
| 45 | - addr = &uc->uc_mcontext.uc_regs->gregs[reg - UNW_PPC32_R0]; | 45 | - addr = &uc->uc_mcontext.uc_regs->gregs[reg - UNW_PPC32_R0]; |
| 46 | + addr = _UC_MCONTEXT_REGS(&uc)->gregs[reg - UNW_PPC32_R0]; | 46 | + addr = &_UCONTEXT_UC_REGS(uc)->gregs[reg - UNW_PPC32_R0]; |
| 47 | #elif defined(__FreeBSD__) | 47 | #elif defined(__FreeBSD__) |
| 48 | addr = &uc->uc_mcontext.mc_gpr[reg - UNW_PPC32_R0]; | 48 | addr = &uc->uc_mcontext.mc_gpr[reg - UNW_PPC32_R0]; |
| 49 | #endif | 49 | #endif |
| @@ -52,7 +52,7 @@ index 9444cbb8..5e94ed8a 100644 | |||
| 52 | ((unsigned) (reg - UNW_PPC32_F0) >= 0) ) | 52 | ((unsigned) (reg - UNW_PPC32_F0) >= 0) ) |
| 53 | #if defined(__linux__) | 53 | #if defined(__linux__) |
| 54 | - addr = &uc->uc_mcontext.uc_regs->fpregs.fpregs[reg - UNW_PPC32_F0]; | 54 | - addr = &uc->uc_mcontext.uc_regs->fpregs.fpregs[reg - UNW_PPC32_F0]; |
| 55 | + addr = _UC_MCONTEXT_REGS(&uc)->fpregs.fpregs[reg - UNW_PPC32_F0]; | 55 | + addr = &_UCONTEXT_UC_REGS(uc)->fpregs.fpregs[reg - UNW_PPC32_F0]; |
| 56 | #elif defined(__FreeBSD__) | 56 | #elif defined(__FreeBSD__) |
| 57 | addr = &uc->uc_mcontext.mc_fpreg[reg - UNW_PPC32_F0]; | 57 | addr = &uc->uc_mcontext.mc_fpreg[reg - UNW_PPC32_F0]; |
| 58 | #endif | 58 | #endif |
| @@ -61,7 +61,7 @@ index 9444cbb8..5e94ed8a 100644 | |||
| 61 | } | 61 | } |
| 62 | #if defined(__linux__) | 62 | #if defined(__linux__) |
| 63 | - addr = &uc->uc_mcontext.uc_regs->gregs[gregs_idx]; | 63 | - addr = &uc->uc_mcontext.uc_regs->gregs[gregs_idx]; |
| 64 | + addr = _UC_MCONTEXT_REGS(&uc)->gregs[gregs_idx]; | 64 | + addr = &_UCONTEXT_UC_REGS(uc)->gregs[gregs_idx]; |
| 65 | #elif defined(__FreeBSD__) | 65 | #elif defined(__FreeBSD__) |
| 66 | addr = &uc->uc_mcontext.mc_gpr[gregs_idx]; | 66 | addr = &uc->uc_mcontext.mc_gpr[gregs_idx]; |
| 67 | #endif | 67 | #endif |
