build: workaround for Linaro gcc-4.6 cross compilers

This commit is contained in:
Matt Sealey
2012-03-26 17:34:03 -05:00
parent 4fdaa5078c
commit 39a894043f

View File

@@ -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 = \