Fix alignment of AArch64 assembler functions
authorOle André Vadla Ravnås <ole.andre.ravnas@tillitech.com>
Sun, 6 Apr 2014 18:53:02 +0000 (20:53 +0200)
committerOle André Vadla Ravnås <ole.andre.ravnas@tillitech.com>
Sun, 6 Apr 2014 18:57:32 +0000 (20:57 +0200)
src/aarch64/sysv.S

index 7273b73..169eab8 100644 (file)
@@ -47,6 +47,9 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  */
 #ifdef __ELF__
         .type CNAME(ffi_call_SYSV), #function
 #endif
+#ifdef __APPLE__
+        .align 2
+#endif
 
 /* ffi_call_SYSV()
 
@@ -241,6 +244,9 @@ CNAME(ffi_call_SYSV):
 
         .text
         .globl CNAME(ffi_closure_SYSV)
+#ifdef __APPLE__
+        .align 2
+#endif
         .cfi_startproc
 CNAME(ffi_closure_SYSV):
         stp     x29, x30, [sp, #-16]!