From 5a93761c738ac7f3ded9d2cf5fa3e6a756102271 Mon Sep 17 00:00:00 2001 From: Chris Kay Date: Mon, 15 Oct 2018 16:31:41 +0100 Subject: [PATCH] build: Disable generation of unaligned accesses CCR.UNALIGN_TRP is enabled, and will trap any unaligned access. We need to ensure the compiler does not generate them. Change-Id: Ia0166578c00fa53399aa9823eec8f166b70b0762 Signed-off-by: Chris Kay --- tools/build_system/cpu.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/build_system/cpu.mk b/tools/build_system/cpu.mk index 521589a1e..05365effa 100644 --- a/tools/build_system/cpu.mk +++ b/tools/build_system/cpu.mk @@ -21,6 +21,7 @@ ifneq ($(findstring $(BS_FIRMWARE_CPU),$(ARMV7M_CPUS)),) $(call add_once,CFLAGS_CLANG,--target=arm-arm-none-eabi) CFLAGS += -mfloat-abi=soft # No hardware floating point support + CFLAGS += -mno-unaligned-access # Disable unaligned access code generation else ifeq ($(BS_FIRMWARE_CPU),host) BS_ARCH_ARCH := host -- GitLab