diff options
author | Anthony Green <green@moxielogic.com> | 2014-09-18 19:06:08 -0400 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2014-09-18 19:06:08 -0400 |
commit | 862f53de04ff898a128be7eec592bae60930d6df (patch) | |
tree | cc98e9a66b150a311b41be80ea8a5766f4ebc0f8 | |
parent | 5df384077f3633ec8cf2e08f9199e5a44994dbad (diff) | |
parent | aebf2c3023b5ff056a708dc34169f7b549b2ec4f (diff) | |
download | libffi-862f53de04ff898a128be7eec592bae60930d6df.tar.gz |
Merge pull request #130 from frida/fix/darwin-aarch64-float-alignment
Fix alignment of FFI_TYPE_FLOAT for Apple's ARM64 ABI
-rw-r--r-- | src/aarch64/ffi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/aarch64/ffi.c b/src/aarch64/ffi.c index 05f1a13..5369ea4 100644 --- a/src/aarch64/ffi.c +++ b/src/aarch64/ffi.c @@ -146,6 +146,9 @@ get_basic_type_alignment (unsigned short type) switch (type) { case FFI_TYPE_FLOAT: +#if defined (__APPLE__) + return sizeof (UINT32); +#endif case FFI_TYPE_DOUBLE: return sizeof (UINT64); #if FFI_TYPE_DOUBLE != FFI_TYPE_LONGDOUBLE |