]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmVirtPkg: build runtime drivers with 64 KB section alignment
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 6 Jul 2015 15:58:00 +0000 (15:58 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Mon, 6 Jul 2015 15:58:00 +0000 (15:58 +0000)
This adds the 64 KB alignment overlay linker script to the linker
command line of DXE_RUNTIME_DRIVER modules. This makes these modules
compatible with the new Properties Table feature by aligning the .text
and .data sections to 64 KB.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Olivier Martin <Olivier.Martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17825 6f19259b-4bc3-4df7-8a09-765794883524

ArmVirtPkg/ArmVirt.dsc.inc

index 7ec0de43445911b4ffe6fbf71642953079c19e79..8893dfa74c56be026ff0c1309c71130116ebbc1a 100644 (file)
@@ -16,6 +16,9 @@
 [Defines]\r
   DEFINE DEBUG_PRINT_ERROR_LEVEL = 0x8000004F\r
 \r
+[BuildOptions.AARCH64.EDKII.DXE_RUNTIME_DRIVER]\r
+  *_*_AARCH64_DLINK_FLAGS = --script=$(EDK_TOOLS_PATH)/Scripts/gcc-aarch64-64K-align-ld-script\r
+\r
 [LibraryClasses.common]\r
 !if $(TARGET) == RELEASE\r
   DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r