Fix ____longjmp_chk for ppc(64)
Steve Munroe
sjmunroe@us.ibm.com
Wed Jun 24 19:37:00 GMT 2009
libc-alpha-owner@sourceware.org wrote on 06/24/2009 07:27:13 AM:
> The ppc32 libc.so contains text relocations due to the non-pic load of
> the string in ____longjmp_chk. Also, backtrace from within
> __fortify_fail didn't work.
>
> Andreas.
>
> 2009-06-24 Andreas Schwab <aschwab@redhat.com>
>
> * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
> (CHECK_SP): Use it. Save lr before call.
> * sysdeps/powerpc/powerpc64/____longjmp_chk.S (CHECK_SP): Save lr
> before call.
>
> diff --git i/sysdeps/powerpc/powerpc32/____longjmp_chk.S
> w/sysdeps/powerpc/powerpc32/____longjmp_chk.S
> index 5c1f648..b358058 100644
> --- i/sysdeps/powerpc/powerpc32/____longjmp_chk.S
> +++ w/sysdeps/powerpc/powerpc32/____longjmp_chk.S
> @@ -26,12 +26,39 @@
>
This code is not really used by linux except for embedded. The real version
should be in sysdeps/powerpc/powerpc32/fpu/
The original fpu/__longjmp.S had the appropriate PIC implementation.
not sure where sysdeps/powerpc/powerpc32/____longjmp_chk.S can from or what
you did build it versus sysdeps/powerpc/powerpc32/fpu/____longjmp_chk.S Of
is that missing?
More information about the Libc-alpha
mailing list