From: John Linn Date: Fri, 6 Jan 2012 03:19:42 +0000 (-0800) Subject: Xilinx: ARM: Stop GCC from generating unaligned accesses X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=51c77fd5cfa11f82faa1f4807ffca4716be48d45;p=thirdparty%2Fu-boot.git Xilinx: ARM: Stop GCC from generating unaligned accesses With the newer GNU tools, GCC 4.5.2 and newer, we're seeing data aborts. This solution may not be the right long term solution, but works for now. This causes GCC not to generate unaligned data. --- diff --git a/config.mk b/config.mk index eb95093f464..01ee50c0639 100644 --- a/config.mk +++ b/config.mk @@ -189,6 +189,11 @@ else CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes endif +# Xilinx, added to prevent unaligned accesses which started happening +# with GCC 4.5.2 tools + +CFLAGS += -mno-unaligned-access + CFLAGS += $(call cc-option,-fno-stack-protector) # $(CPPFLAGS) sets -g, which causes gcc to pass a suitable -g