your patch broke darwin libffi

David Edelsohn dje@watson.ibm.com
Fri Jan 18 11:09:00 GMT 2002


>>>>> Andreas Tobler writes:

Andreas> your latest patch to the libffi broke darwin to build:
Andreas> /Volumes/xufs/gccsrc/objdir/gcc/xgcc -B/Volumes/xufs/gccsrc/objdir/gcc/
Andreas> -B/Volumes/reserved1/gcctmp/powerpc-apple-darwin5.2/bin/
Andreas> -B/Volumes/reserved1/gcctmp/powerpc-apple-darwin5.2/lib/ -isystem
Andreas> /Volumes/reserved1/gcctmp/powerpc-apple-darwin5.2/include -fexceptions
Andreas> -g -o ffitest -shared-libgcc src/ffitest.o  ./.libs/libffi.a
Andreas> /usr/bin/ld: Undefined symbols:
Andreas> _ffi_call_AIX
Andreas> collect2: ld returned 1 exit status
Andreas> make[2]: *** [ffitest] Error 1

	Why doesn't Darwin ignore missing symbols?  Doesn't it use lazy
binding? 

	Throw a definition of _ffi_call_AIX in darwin.S.  It will never be
called because the ABI will never be set to  AIX.

David



More information about the Gcc mailing list