This is the mail archive of the
libffi-discuss@sources.redhat.com
mailing list for the libffi 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-patche at gcc dot gnu dot org, libffi-discuss at sources dot redhat dot com
- Date: Fri, 18 Jan 2002 11:27:20 -0500
- Subject: Re: your patch broke darwin libffi
The following patch should get rid of the Darwin link error.
ffi_call_DARWIN is not defined for AIX either, and it does not complain.
Given the delicacy of AIX in this area, I did not expect Darwin to have a
problem with the missing symbol if AIX was satisfied.
If Darwin does not use shared libraries for libffi, that may be
the reason it cannot handle the missing symbol.
David
* src/powerpc/darwin.S (_ffi_call_AIX): New.
Index: darwin.S
===================================================================
RCS file: /cvs/gcc/egcs/libffi/src/powerpc/darwin.S,v
retrieving revision 1.1
diff -c -p -r1.1 darwin.S
*** darwin.S 2001/10/09 05:32:15 1.1
--- darwin.S 2002/01/18 16:19:48
*************** L(float_return_value):
*** 147,153 ****
b L(done_return_value)
//END(_ffi_call_DARWIN)
!
!
!
--- 147,159 ----
b L(done_return_value)
//END(_ffi_call_DARWIN)
! /* Provide a null definition of _ffi_call_AIX. */
! .text
! .align 2
! .globl _ffi_call_AIX
! .text
! .align 2
! _ffi_call_AIX:
! blr
! //END(_ffi_call_AIX)