[U-Boot] [PATCH V6] [RESEND] ARM: prevent misaligned array inits
Tom Rini
trini at ti.com
Mon Oct 15 20:48:52 CEST 2012
On Tue, Oct 09, 2012 at 09:28:15PM +0200, Albert ARIBAUD wrote:
> Under option -munaligned-access, gcc can perform local char
> or 16-bit array initializations using misaligned native
> accesses which will throw a data abort exception. Fix files
> where these array initializations were unneeded, and for
> files known to contain such initializations, enforce gcc
> option -mno-unaligned-access.
>
> Signed-off-by: Albert ARIBAUD <albert.u.boot at aribaud.net>
> ---
> V6: Make sure that gcc does not silently drop -mno-unaligned-access
> if it does not support it.
OK, you were correct. We need to use cc-option since older compilers
which were not causing issues don't support it either, making this
workable. I will just fix this in-line rather than make you do a v7.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121015/2ce1ce8d/attachment.pgp>
More information about the U-Boot
mailing list