diff options
Diffstat (limited to 'arch/arm/Makefile')
-rw-r--r-- | arch/arm/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 721aa9bd9d..cae05ff52b 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -13,6 +13,13 @@ AS += -EL LD += -EL endif +# Unaligned access is not supported when MMU is disabled, so given how +# at least some of the code would be executed with MMU off, lets be +# conservative and instruct the compiler not to generate any unaligned +# accesses +CFLAGS += -mno-unaligned-access + + # This selects which instruction set is used. # Note that GCC does not numerically define an architecture version # macro, but instead defines a whole series of macros which makes |