[libffi] closures for sparc
Andreas Tobler
toa@pop.agri.ch
Sat Jan 4 10:53:00 GMT 2003
Jeff Sturm wrote:
> Index: src/ffitest.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/libffi/src/ffitest.c,v
> retrieving revision 1.9
> diff -u -p -r1.9 ffitest.c
> --- src/ffitest.c 6 Dec 2002 01:16:45 -0000 1.9
> +++ src/ffitest.c 28 Dec 2002 16:44:23 -0000
> @@ -1044,7 +1044,9 @@ int main(/*@unused@*/ int argc, /*@unuse
> # if FFI_CLOSURES
> /* A simple closure test */
> {
> - ffi_closure cl;
> + /* The closure must not be an automatic variable on
> + platforms (Solaris) that forbid stack execution by default. */
> + static ffi_closure cl;
> ffi_type * cl_arg_types[3];
>
Hm, powerpc-unknown-linux-gnu doesn't like the static:
/bin/sh ./libtool --mode=link /mnt/cvs/objdir/gcc/xgcc
-B/mnt/cvs/objdir/gcc/
-B/mnt/cvs/testbinary/powerpc-unknown-linux-gnu/bin/
-B/mnt/cvs/testbinary/powerpc-unknown-linux-gnu/lib/ -isystem
/mnt/cvs/testbinary/powerpc-unknown-linux-gnu/include -fexceptions -O2
-g -O2 -o ffitest -shared-libgcc ffitest.lo libffi.la
/mnt/cvs/objdir/gcc/xgcc -B/mnt/cvs/objdir/gcc/
-B/mnt/cvs/testbinary/powerpc-unknown-linux-gnu/bin/
-B/mnt/cvs/testbinary/powerpc-unknown-linux-gnu/lib/ -isystem
/mnt/cvs/testbinary/powerpc-unknown-linux-gnu/include -fexceptions -O2
-g -O2 -o .libs/ffitest -shared-libgcc .libs/ffitest.o
./.libs/libffi.so -Wl,--rpath -Wl,/mnt/cvs/testbinary/lib
.libs/ffitest.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [ffitest] Error 1
make[2]: Leaving directory
`/mnt/cvs/objdir/powerpc-unknown-linux-gnu/libffi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/mnt/cvs/objdir/powerpc-unknown-linux-gnu/libffi'
make: *** [all-recursive-am] Error 2
More information about the Java-patches
mailing list