This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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?



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]