Commit b513dfe79de4725e8a717325a9e3b5b9f69f63dc

Zachary Waldowski 2013-11-30T02:05:22

Darwin/aarch64: Restrict .size to ELF like arm32.

diff --git a/src/aarch64/sysv.S b/src/aarch64/sysv.S
index c3d6d02..abb42af 100644
--- a/src/aarch64/sysv.S
+++ b/src/aarch64/sysv.S
@@ -195,7 +195,9 @@ CNAME(ffi_call_SYSV):
         ret
 
         .cfi_endproc
-        .size ffi_call_SYSV, .-ffi_call_SYSV
+#ifdef __ELF__
+		.size CNAME(ffi_call_SYSV), .-CNAME(ffi_call_SYSV)
+#endif
 
 #define ffi_closure_SYSV_FS (8 * 2 + AARCH64_CALL_CONTEXT_SIZE)
 
@@ -319,4 +321,6 @@ CNAME(ffi_closure_SYSV):
 
         ret
         .cfi_endproc
+#ifdef __ELF__
 		.size CNAME(ffi_closure_SYSV), .-CNAME(ffi_closure_SYSV)
+#endif