From 39a894043ffc2ec60f2cbc743049021d9b3aad62 Mon Sep 17 00:00:00 2001 From: Matt Sealey Date: Mon, 26 Mar 2012 17:34:03 -0500 Subject: [PATCH] build: workaround for Linaro gcc-4.6 cross compilers --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index e6b7c1cfe4c..f7419f978f4 100644 --- a/Makefile +++ b/Makefile @@ -571,6 +571,9 @@ KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow) # revert to pre-gcc-4.4 behaviour of .eh_frame KBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm) +# fix a Linaro gcc-4.6 bug (on Ubuntu Precise at least) that stops old ARM kernels booting +KBUILD_CFLAGS += $(call cc-option,-mno-unaligned-access) + # Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments # But warn user when we do so warn-assign = \