public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] disk: add -mno-unaligned-access to CFLAGS
@ 2013-03-28 18:57 Marc Dietrich
  2013-03-28 20:42 ` Albert ARIBAUD
  0 siblings, 1 reply; 5+ messages in thread
From: Marc Dietrich @ 2013-03-28 18:57 UTC (permalink / raw)
  To: u-boot

Many on-disk structures used in the directory are accessed in a
non aligned manner. gcc => 4.7 (and gcc-4.6 from Linaro) switched
to -munaligned-access on default causing exceptions on ARM. The
easiest way to fix this is to force no-unaligned-access in this
(non speed critical) directory.

Signed-off-by: Marc Dietrich <marvin24@gmx.de>
---
 disk/Makefile |    1 +
 1 file changed, 1 insertion(+)

diff --git a/disk/Makefile b/disk/Makefile
index 5affe34..01134a3 100644
--- a/disk/Makefile
+++ b/disk/Makefile
@@ -24,6 +24,7 @@
 include $(TOPDIR)/config.mk
 
 #CFLAGS += -DET_DEBUG -DDEBUG
+CFLAGS += -mno-unaligned-access
 
 LIB	= $(obj)libdisk.o
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-03-29 11:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-28 18:57 [U-Boot] [PATCH] disk: add -mno-unaligned-access to CFLAGS Marc Dietrich
2013-03-28 20:42 ` Albert ARIBAUD
2013-03-28 22:35   ` Marc Dietrich
2013-03-29  7:00     ` Albert ARIBAUD
2013-03-29 11:31       ` Marc Dietrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox