This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: your patch broke darwin libffi


>>>>> 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


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