This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: your patch broke darwin libffi
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Andreas Tobler <toa at pop dot agri dot ch>
- Cc: GCC <gcc at gcc dot gnu dot org>
- Date: Fri, 18 Jan 2002 11:04:53 -0500
- Subject: 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