mirror of https://github.com/acidanthera/audk.git
StandaloneMmPkg: Enforce alignment check for AArch64
On AArch64, Standalone MM during the SEC phase runs in S-EL0 with SCTLR_EL1.A=1. This patch adds the -mstrict-align compiler flag to ensure that the generated code is compliant with the runtime alignment checks. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Achin Gupta <achin.gupta@arm.com> Signed-off-by: Sughosh Ganu <sughosh.ganu@arm.com> Reviewed-by: Achin Gupta <achin.gupta@arm.com>
This commit is contained in:
parent
4ceb9c01f9
commit
f8943176f0
|
@ -128,4 +128,5 @@
|
||||||
#
|
#
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
[BuildOptions.AARCH64]
|
[BuildOptions.AARCH64]
|
||||||
GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000 -march=armv8-a+nofp
|
GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000 -march=armv8-a+nofp -mstrict-align
|
||||||
|
GCC:*_*_*_CC_FLAGS = -mstrict-align
|
||||||
|
|
Loading…
Reference in New Issue