diff options
author | Achin Gupta <achin.gupta@arm.com> | 2018-12-03 12:50:53 +0530 |
---|---|---|
committer | Achin Gupta <achin.gupta@arm.com> | 2018-12-09 16:01:04 +0000 |
commit | f8943176f09518c86275e6228d7ebd0a7748d0dc (patch) | |
tree | d13ebb6a85ebf7997dac187684eab496bd9e5fac /StandaloneMmPkg | |
parent | 4ceb9c01f9b2902c5e42323a9704048b6ea1af2b (diff) | |
download | edk2-f8943176f09518c86275e6228d7ebd0a7748d0dc.tar.gz edk2-f8943176f09518c86275e6228d7ebd0a7748d0dc.tar.bz2 edk2-f8943176f09518c86275e6228d7ebd0a7748d0dc.zip |
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>
Diffstat (limited to 'StandaloneMmPkg')
-rw-r--r-- | StandaloneMmPkg/StandaloneMmPkg.dsc | 3 |
1 files changed, 2 insertions, 1 deletions
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
|