Merge pull request #115 from frida/fix/darwin-aarch64-alignment
authorAnthony Green <green@moxielogic.com>
Sat, 12 Apr 2014 23:30:18 +0000 (19:30 -0400)
committerAnthony Green <green@moxielogic.com>
Sat, 12 Apr 2014 23:30:18 +0000 (19:30 -0400)
Fix alignment of AArch64 assembler functions

src/x86/ffi.c

index 72bed06..bcfc153 100644 (file)
@@ -746,7 +746,7 @@ ffi_prep_raw_closure_loc (ffi_raw_closure* closure,
     }
   else if (cif->abi == FFI_THISCALL)
     {
-      FFI_INIT_TRAMPOLINE_RAW_THISCALL (&closure->tramp[0], &ffi_closure_raw_THISCALL, codeloc);
+      FFI_INIT_TRAMPOLINE_RAW_THISCALL (&closure->tramp[0], &ffi_closure_raw_THISCALL, codeloc, cif->bytes);
     }
 #endif
   closure->cif  = cif;