This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fix ____longjmp_chk for ppc(64)
- From: Steve Munroe <sjmunroe at us dot ibm dot com>
- To: Andreas Schwab <aschwab at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 24 Jun 2009 14:22:44 -0500
- Subject: Re: Fix ____longjmp_chk for ppc(64)
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?