Blame SOURCES/0018-Make.default-use-correct-flags-to-disable-unaligned-.patch

6a35ff
From 7f080b30f3c3718d6b2533f62a50f373fd2cda21 Mon Sep 17 00:00:00 2001
6a35ff
From: Peter Korsgaard <peter@korsgaard.com>
6a35ff
Date: Thu, 10 Jan 2019 23:34:11 +0100
6a35ff
Subject: [PATCH 18/62] Make.default: use correct flags to disable unaligned
6a35ff
 access for 32 bit ARM
6a35ff
MIME-Version: 1.0
6a35ff
Content-Type: text/plain; charset=UTF-8
6a35ff
Content-Transfer-Encoding: 8bit
6a35ff
6a35ff
The GCC flag to disable unaligned access on 32bit ARM is
6a35ff
-mno-unaligned-access, not -mstrict-align (which is used on aarch64):
6a35ff
6a35ff
https://lkml.org/lkml/2018/8/3/294
6a35ff
6a35ff
Otherwise build dies with:
6a35ff
arm-linux-gnueabihf-gcc: error: unrecognized command line option
6a35ff
   ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’?
6a35ff
6a35ff
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
6a35ff
Upstream-commit-id: 41b93358e8c
6a35ff
---
6a35ff
 Make.defaults | 2 +-
6a35ff
 1 file changed, 1 insertion(+), 1 deletion(-)
6a35ff
6a35ff
diff --git a/Make.defaults b/Make.defaults
6a35ff
index bbfc1d7f77b..09807bd8108 100644
6a35ff
--- a/Make.defaults
6a35ff
+++ b/Make.defaults
6a35ff
@@ -72,7 +72,7 @@ ifeq ($(ARCH),aarch64)
6a35ff
 	ARCH_CFLAGS		?=
6a35ff
 endif
6a35ff
 ifeq ($(ARCH),arm)
6a35ff
-	ARCH_CFLAGS		?= -DMDE_CPU_ARM -DPAGE_SIZE=4096 -mstrict-align
6a35ff
+	ARCH_CFLAGS		?= -DMDE_CPU_ARM -DPAGE_SIZE=4096 -mno-unaligned-access
6a35ff
 	LIBDIR			?= $(prefix)/lib
6a35ff
 	ARCH_SUFFIX		?= arm
6a35ff
 	ARCH_SUFFIX_UPPER	?= ARM
6a35ff
-- 
6a35ff
2.26.2
6a35ff