diff options
author | Tetsuyuki Kobayashi <koba@kmckk.co.jp> | 2012-07-01 23:42:10 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-07-20 14:24:08 +0200 |
commit | 5eb497429ef065083d75ca0bbc61d421a17fcec1 (patch) | |
tree | 0fcb14a7dd986c017340238bfbeb9d9cb2ad6470 /arch | |
parent | 448217d4b2e11b11ae5addd1d1f752ce194d6af0 (diff) | |
download | u-boot-imx-5eb497429ef065083d75ca0bbc61d421a17fcec1.zip u-boot-imx-5eb497429ef065083d75ca0bbc61d421a17fcec1.tar.gz u-boot-imx-5eb497429ef065083d75ca0bbc61d421a17fcec1.tar.bz2 |
arm: armv7: add compile option -mno-unaligned-access if available
Recent compiler generates unaligned memory access in armv7 default.
But current U-Boot does not allow unaligned memory access, so it causes
data abort exception.
This patch add compile option "-mno-unaligned-access" if it is available.
Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Tested-by: Gary Thomas <gary@mlbassoc.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/cpu/armv7/config.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/config.mk b/arch/arm/cpu/armv7/config.mk index 5407cb6..560c084 100644 --- a/arch/arm/cpu/armv7/config.mk +++ b/arch/arm/cpu/armv7/config.mk @@ -26,6 +26,8 @@ PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float # supported by more tool-chains PF_CPPFLAGS_ARMV7 := $(call cc-option, -march=armv7-a, -march=armv5) PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_ARMV7) +PF_CPPFLAGS_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,) +PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_NO_UNALIGNED) # ========================================================================= # |