]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/OvmfPkgX64.dsc
OvmfPkg: set 4 KB section alignment for DXE_RUNTIME_DRIVER modules
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 30 Sep 2015 08:53:00 +0000 (08:53 +0000)
committerlersek <lersek@Edk2>
Wed, 30 Sep 2015 08:53:00 +0000 (08:53 +0000)
commitddd89cd50dd3a989e58a75ed38011168e3ec0954
tree7ac065f2c42551d589f9aefda39ce177fee5df29
parentabbe4e57f4bf753613535a85f3bd82067644bdae
OvmfPkg: set 4 KB section alignment for DXE_RUNTIME_DRIVER modules

Increase the section alignment to 4 KB for DXE_RUNTIME_DRIVER modules.
This allows the OS to map them with tightened permissions (i.e., R-X for
.text and RW- for .data). This is a prerequisite for enabling the
EFI_PROPERTIES_RUNTIME_MEMORY_PROTECTION_NON_EXECUTABLE_PE_DATA (sic)
feature that was introduced in UEFIv2.5.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18564 6f19259b-4bc3-4df7-8a09-765794883524
OvmfPkg/OvmfPkgIa32.dsc
OvmfPkg/OvmfPkgIa32X64.dsc
OvmfPkg/OvmfPkgX64.dsc