From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Thu, 28 Mar 2013 21:42:13 +0100 Subject: [U-Boot] [PATCH] disk: add -mno-unaligned-access to CFLAGS In-Reply-To: References: Message-ID: <20130328214213.1f324dac@lilith> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Marc, On Thu, 28 Mar 2013 19:57:31 +0100, Marc Dietrich wrote: > 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 > --- > 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 Which fields, which structures, which files are affected by the unalignment issue? Amicalement, -- Albert.