1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: Sandro Tosi <morph@debian.org>
Date: Tue, 5 Dec 2017 18:45:36 -0500
Subject: Don't use unaligned access on ARM
Depending on CPU and kernel config, unaligned access may raise SIGBUS on
ARM. Use the slower, but safe, implementation instead.
Author: Steve Langasek <steve.langasek@ubuntu.com>
Last-Update: 2017-06-18
---
src/config.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/config.h b/src/config.h
index 4fb28df..ac3c942 100644
--- a/src/config.h
+++ b/src/config.h
@@ -53,7 +53,7 @@
#endif
/* Use memory alignment workaround or not */
-#ifdef __ia64__
+#if defined(__ia64__) || defined(__arm__)
#define ALIGNMENT_WORKAROUND
#endif
|