summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLandon Fuller <landonf@bikemonkey.org>2011-02-12 11:01:48 -0500
committerLandon Fuller <landonf@bikemonkey.org>2011-02-12 11:01:48 -0500
commit28a00f61ff3f64c4eb2269ce2aea3d493274469e (patch)
tree09f3fda6d6bc669081f44d55d84336c4bdf5a610
parent7f2ea33a80bfced5e48ed7292f3b8f057d54ff8f (diff)
downloadlibffi-28a00f61ff3f64c4eb2269ce2aea3d493274469e.tar.gz
Apple assembler support; fixed most gas/ELF-isms.
-rw-r--r--src/arm/sysv.S9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/arm/sysv.S b/src/arm/sysv.S
index 95329d7..895eba8 100644
--- a/src/arm/sysv.S
+++ b/src/arm/sysv.S
@@ -318,7 +318,12 @@ ARM_FUNC_START ffi_closure_SYSV
/* Below are VFP hard-float ABI call and closure implementations.
Add VFP FPU directive here. */
+#ifndef __APPLE__
+ /* XXX - .fpu pseudo-directive is not supported by Apple's assembler,
+ and VFP hard-float calling conventions are not supported by the
+ compiler. */
.fpu vfp
+#endif
@ r0: fn
@ r1: &ecif
@@ -416,7 +421,9 @@ LSYM(Lepilogue_vfp):
.ffi_call_VFP_end:
UNWIND .fnend
+#ifdef __ELF__
.size CNAME(ffi_call_VFP),.ffi_call_VFP_end-CNAME(ffi_call_VFP)
+#endif
ARM_FUNC_START ffi_closure_VFP
@@ -478,7 +485,9 @@ ARM_FUNC_START ffi_closure_VFP
.ffi_closure_VFP_end:
UNWIND .fnend
+#ifdef __ELF__
.size CNAME(ffi_closure_VFP),.ffi_closure_VFP_end-CNAME(ffi_closure_VFP)
+#endif
#if defined __ELF__ && defined __linux__
.section .note.GNU-stack,"",%progbits