From f8943176f09518c86275e6228d7ebd0a7748d0dc Mon Sep 17 00:00:00 2001 From: Achin Gupta Date: Mon, 3 Dec 2018 12:50:53 +0530 Subject: 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 Signed-off-by: Sughosh Ganu Reviewed-by: Achin Gupta --- StandaloneMmPkg/StandaloneMmPkg.dsc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'StandaloneMmPkg') diff --git a/StandaloneMmPkg/StandaloneMmPkg.dsc b/StandaloneMmPkg/StandaloneMmPkg.dsc index 84de1ab0f1..3470e1102c 100644 --- a/StandaloneMmPkg/StandaloneMmPkg.dsc +++ b/StandaloneMmPkg/StandaloneMmPkg.dsc @@ -128,4 +128,5 @@ # ################################################################################################### [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 -- cgit v1.2.3