[PATCH] powerpc: Fix non-atomic stack pointer update in fortified longjmp (bug 34530)
Joseph Myers
josmyers@redhat.com
Mon Aug 24 16:22:52 GMT 2026
On Mon, 17 Aug 2026, Florian Weimer wrote:
> diff --git a/sysdeps/powerpc/powerpc32/__longjmp-common.S b/sysdeps/powerpc/powerpc32/__longjmp-common.S
> index eb228bf4fe..9da86330f7 100644
> --- a/sysdeps/powerpc/powerpc32/__longjmp-common.S
> +++ b/sysdeps/powerpc/powerpc32/__longjmp-common.S
> @@ -30,11 +30,12 @@ ENTRY (__longjmp_symbol)
>
> #if defined PTR_DEMANGLE || defined CHECK_SP
> lwz r24,(JB_GPR1*4)(r3)
> +# ifdef PTR_DEMANGLE
> + PTR_DEMANGLE (r24, r25)
> +# endif
> # ifdef CHECK_SP
> -# ifdef PTR_DEMANGLE
> - PTR_DEMANGLE3 (r24, r24, r25)
> -# endif
> CHECK_SP (r24)
> +# endif
> mr r1,r24
> # endif
> #else
This breaks the build for powerpc soft-float (error: '#else' without
'#if').
--
Joseph S. Myers
josmyers@redhat.com
More information about the Libc-alpha
mailing list