This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: libffi ABI change causes stack corruption on Debian
- From: Anthony Green <green at redhat dot com>
- To: Alan Modra <amodra at gmail dot com>
- Cc: libffi-discuss at sourceware dot org
- Date: Thu, 21 Nov 2013 06:05:57 -0500
- Subject: Re: libffi ABI change causes stack corruption on Debian
- Authentication-results: sourceware.org; auth=none
- References: <OFCC53E675 dot 090279F5-ONC1257C29 dot 006A1ED2-C1257C29 dot 006B0A1A at de dot ibm dot com> <20131120223825 dot GJ22514 at bubble dot grove dot modra dot org> <20131121103907 dot GB3588 at bubble dot grove dot modra dot org> <87r4aajahn dot fsf at redhat dot com>
Anthony Green <green@redhat.com> writes:
> Alan Modra <amodra@gmail.com> writes:
>> Attached is a replacement for
>> https://sourceware.org/ml/libffi-discuss/2013/msg00218.html that fixes
>> backwards compatibility issues.
>
> Thanks Alan. This patch doesn't apply cleanly to the git libffi right
> now. Could you either rebase it, or send me your patched
> src/powerpc/ffi.c?
Ignore this. I had missed your two fix patches from yesterday.
Committing shortly...
Thanks!
AG
>
> Thanks!
>
> AG
>
>
> [green@moxiedev ~]$ git clone git@github.com:/atgreen/libffi
> Cloning into 'libffi'...
> Enter passphrase for key '/home/green/.ssh/id_rsa':
> Authenticated to github.com ([192.30.252.128]:22).
> remote: Counting objects: 8320, done.
> remote: Compressing objects: 100% (3581/3581), done.
> remote: Total 8320 (delta 4722), reused 8074 (delta 4510)
> Transferred: sent 4704, received 6032632 bytes, in 26.7 seconds
> Bytes per second: sent 175.9, received 225612.5
> Receiving objects: 100% (8320/8320), 5.73 MiB | 162.00 KiB/s, done.
> Resolving deltas: 100% (4722/4722), done.
> [green@moxiedev ~]$ cd libffi/
> [green@moxiedev libffi]$ cat /tmp/0003-Tidy-powerpc-linux-support.patch.gz | gzip -d - | patch -p1
> patching file Makefile.am
> patching file configure.ac
> patching file include/ffi.h.in
> patching file src/powerpc/ffi.c
> Hunk #2 FAILED at 28.
> 1 out of 5 hunks FAILED -- saving rejects to file src/powerpc/ffi.c.rej
> patching file src/powerpc/ffi_linux64.c
> patching file src/powerpc/ffi_powerpc.h
> patching file src/powerpc/ffi_sysv.c
> patching file src/powerpc/ffitarget.h
> patching file src/powerpc/linux64.S
> patching file src/powerpc/linux64_closure.S
> patching file src/powerpc/ppc_closure.S
> patching file src/powerpc/sysv.S
> patching file src/prep_cif.c
> patching file src/types.c