Commit aa7ed78c0e0d3fc4daa6a86c35ecbb7c43b5d067

Tom Tromey 2016-08-10T15:03:37

Merge pull request #268 from frida/fix/aarch64-large-aggregates aarch64: Fix handling of aggregates larger than 16 bytes

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/aarch64/ffi.c b/src/aarch64/ffi.c
index 2d92f96..b4a7a89 100644
--- a/src/aarch64/ffi.c
+++ b/src/aarch64/ffi.c
@@ -668,6 +668,7 @@ ffi_call_int (ffi_cif *cif, void (*fn)(void), void *orig_rvalue,
 		   the argument is replaced by a pointer to the copy.  */
 		a = &avalue[i];
 		t = FFI_TYPE_POINTER;
+		s = sizeof (void *);
 		goto do_pointer;
 	      }
 	    else