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.
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<format>