]> git.proxmox.com Git - mirror_edk2.git/commitdiff
StandaloneMmPkg: Enforce alignment check for AArch64
authorAchin Gupta <achin.gupta@arm.com>
Mon, 3 Dec 2018 07:20:53 +0000 (12:50 +0530)
committerAchin Gupta <achin.gupta@arm.com>
Sun, 9 Dec 2018 16:01:04 +0000 (16:01 +0000)
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>
StandaloneMmPkg/StandaloneMmPkg.dsc

index 84de1ab0f13a6b7df6a77bde9960e0154908c6c6..3470e1102cc3e3b09e43fdd99681c7e80fff78fc 100644 (file)
 #\r
 ###################################################################################################\r
 [BuildOptions.AARCH64]\r
-GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000 -march=armv8-a+nofp\r
+GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000 -march=armv8-a+nofp -mstrict-align\r
+GCC:*_*_*_CC_FLAGS = -mstrict-align\r