]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmVirtPkg RVCT: build DXE_RUNTIME_DRIVER modules with 4 KB alignment
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 14 Dec 2015 07:56:19 +0000 (07:56 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Mon, 14 Dec 2015 07:56:19 +0000 (07:56 +0000)
This adds the RVCT armlink command line switches to build modules of type
DXE_RUNTIME_DRIVER with 4 KB PE/COFF section alignment, allowing the OS
to apply stricter permissions to the .text and .data sections.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19237 6f19259b-4bc3-4df7-8a09-765794883524

ArmVirtPkg/ArmVirt.dsc.inc

index 9a6098b2abcd963b9dc1f368ddbb14cdad297e98..49e4264ee8a4813aec6ec9c661467c257a17da41 100644 (file)
@@ -20,6 +20,7 @@
 [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
+  RVCT:*_*_ARM_DLINK_FLAGS = --scatter $(EDK_TOOLS_PATH)/Scripts/Rvct-Align4K.sct\r
 \r
 [LibraryClasses.common]\r
 !if $(TARGET) == RELEASE\r