diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-10-01 14:01:16 +0000 |
---|---|---|
committer | abiesheuvel <abiesheuvel@Edk2> | 2015-10-01 14:01:16 +0000 |
commit | 955b4946f99fb9c879df235d318a68f91f5dbf0e (patch) | |
tree | 1c4cc61048ee046c5b0c1d0ceda1acbb078f0eab /ArmVirtPkg/ArmVirt.dsc.inc | |
parent | 64a63d6942532da9d162df676f2dd9e6c576921a (diff) | |
download | edk2-platforms-955b4946f99fb9c879df235d318a68f91f5dbf0e.tar.xz |
ArmVirtPkg: use 4 KB section alignment for ARM DXE_RUNTIME_DRIVER modules
In order to support the Properties Table memory protection feature
on 32-bit ARM, build DXE_RUNTIME_DRIVER type binaries with 4 KB section
alignment by setting the common-page-size linker command line option.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18566 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmVirtPkg/ArmVirt.dsc.inc')
-rw-r--r-- | ArmVirtPkg/ArmVirt.dsc.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ArmVirtPkg/ArmVirt.dsc.inc b/ArmVirtPkg/ArmVirt.dsc.inc index 10998c0b3e..b75499f4bc 100644 --- a/ArmVirtPkg/ArmVirt.dsc.inc +++ b/ArmVirtPkg/ArmVirt.dsc.inc @@ -17,7 +17,8 @@ DEFINE DEBUG_PRINT_ERROR_LEVEL = 0x8000004F
DEFINE TTY_TERMINAL = FALSE
-[BuildOptions.AARCH64.EDKII.DXE_RUNTIME_DRIVER]
+[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
+ GCC:*_*_ARM_DLINK_FLAGS = -z common-page-size=0x1000
GCC:*_*_AARCH64_DLINK_FLAGS = -z common-page-size=0x10000
[LibraryClasses.common]
|