Skip to content
Snippets Groups Projects
Commit b823fd9b authored by Albert ARIBAUD's avatar Albert ARIBAUD Committed by Tom Rini
Browse files

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: default avatarAlbert 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: default avatarTom Rini <trini@ti.com>
parent 6528ff01
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment