]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmVirtPkg: use 4 KB section alignment for ARM DXE_RUNTIME_DRIVER modules
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 1 Oct 2015 14:01:16 +0000 (14:01 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Thu, 1 Oct 2015 14:01:16 +0000 (14:01 +0000)
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

ArmVirtPkg/ArmVirt.dsc.inc

index 10998c0b3ea635650a6c688a257d536257280c15..b75499f4bc75f474ee2935da95fd46531430506e 100644 (file)
@@ -17,7 +17,8 @@
   DEFINE DEBUG_PRINT_ERROR_LEVEL = 0x8000004F\r
   DEFINE TTY_TERMINAL            = FALSE\r
 \r
-[BuildOptions.AARCH64.EDKII.DXE_RUNTIME_DRIVER]\r
+[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]\r
+  GCC:*_*_ARM_DLINK_FLAGS = -z common-page-size=0x1000\r
   GCC:*_*_AARCH64_DLINK_FLAGS = -z common-page-size=0x10000\r
 \r
 [LibraryClasses.common]\r