ARM: prevent misaligned array inits
authorAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 9 Oct 2012 09:28:15 +0000 (09:28 +0000)
committerTom Rini <trini@ti.com>
Mon, 15 Oct 2012 18:53:07 +0000 (11:53 -0700)
commitb823fd9ba56d56e3cbb5b05e7a4815fb0914204a
treeb93f7f8ba2874cd0478aee2f96718aedf4031ce7
parent6528ff0109d81c1f21d20f9f1370782bccf87bcb
ARM: prevent misaligned array inits

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@aribaud.net>
[trini: Switch to usign call cc-option for -mno-unaligned-access as
Albert had done previously as that's really correct]
Signed-off-by: Tom Rini <trini@ti.com>
arch/arm/cpu/arm926ejs/orion5x/cpu.c
arch/arm/cpu/armv7/config.mk
arch/arm/lib/interrupts.c
board/ti/omap2420h4/sys_info.c
common/Makefile
common/cmd_dfu.c
doc/README.arm-unaligned-accesses [new file with mode: 0644]
fs/fat/Makefile
fs/ubifs/Makefile
lib/Makefile