From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] disk: add -mno-unaligned-access to CFLAGS
Date: Thu, 28 Mar 2013 21:42:13 +0100 [thread overview]
Message-ID: <20130328214213.1f324dac@lilith> (raw)
In-Reply-To: <aee96f1ea2613f871ad32609455aa39c0a2d5f37.1364496869.git.marvin24@gmx.de>
Hi Marc,
On Thu, 28 Mar 2013 19:57:31 +0100, Marc Dietrich <marvin24@gmx.de>
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 <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
Which fields, which structures, which files are affected by the
unalignment issue?
Amicalement,
--
Albert.
next prev parent reply other threads:[~2013-03-28 20:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-28 18:57 [U-Boot] [PATCH] disk: add -mno-unaligned-access to CFLAGS Marc Dietrich
2013-03-28 20:42 ` Albert ARIBAUD [this message]
2013-03-28 22:35 ` Marc Dietrich
2013-03-29 7:00 ` Albert ARIBAUD
2013-03-29 11:31 ` Marc Dietrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130328214213.1f324dac@lilith \
--to=albert.u.boot@aribaud.net \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.