From: Steve Langasek Date: Sun, 18 Mar 2018 20:52:40 -0400 Subject: Bug 105580 - use alignment-safe copy on ARM on Linux There is existing logic to avoid unaligned copies on ARM, but it is only enabled when building for iOS. iOS is not the only environment where unaligned access is a problem for ARM; some ARM chips also disallow unaligned access, and depending on the kernel config this is exposed in userspace as SIGBUS. --- public/include/XMP_Environment.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/include/XMP_Environment.h b/public/include/XMP_Environment.h index d8bab98..8c5d5a1 100644 --- a/public/include/XMP_Environment.h +++ b/public/include/XMP_Environment.h @@ -155,6 +155,9 @@ #define XMP_HELPER_DLL_IMPORT #define XMP_HELPER_DLL_EXPORT #define XMP_HELPER_DLL_PRIVATE + #ifdef __arm__ + #define XMP_IOS_ARM 1 + #endif #endif // =================================================================================================