diff options
author | Juan Castillo <juan.castillo@arm.com> | 2015-11-06 12:43:56 +0000 |
---|---|---|
committer | Juan Castillo <juan.castillo@arm.com> | 2015-11-10 09:17:08 +0000 |
commit | fa1d37122c13a495033156f6fbbecef7d6ee6a36 (patch) | |
tree | e429475412a407f6ab8ca2b5eec805be388766c6 /lib/stdlib/strcmp.c | |
parent | 135c9ddd36d326fc03983599fa2bcbfd15ff9afe (diff) |
Add -mstrict-align to the gcc options
ARMv8 architecture allows unaligned memory accesses. However,
Trusted Firmware disables such feature by setting the SCTLR_A_BIT
and SCTLR_SA_BIT in the SCTLR_EL3 register (it enables alignment
checks).
This patch adds -mstrict-align to the gcc build options. Although
there are not explicit unaligned memory accesses in Trusted Firmware,
this flag will tell the compiler not to use them.
Fixes ARM-software/tf-issues#294
Change-Id: I69748c6cf28504be9ca3dc975a331d14459c9ef1
Diffstat (limited to 'lib/stdlib/strcmp.c')
0 files changed, 0 insertions, 0 deletions