]> git.proxmox.com Git - efi-boot-shim.git/commit
Use EfiLoaderCode memory for loading PE/COFF executables
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 28 Feb 2017 17:10:23 +0000 (17:10 +0000)
committerPeter Jones <pjones@redhat.com>
Tue, 28 Feb 2017 18:37:23 +0000 (13:37 -0500)
commit97022acd36497727c6a408d2d1dc9da4a94e2e7a
treed6ee3916ad6aa103ef76971cce5a292e86754742
parent83c62ff5828aa483dc498f98c4df818a39f6ba87
Use EfiLoaderCode memory for loading PE/COFF executables

Under a strict memory protection policy, UEFI may give out EfiLoaderData
memory with the XN attribute set. So use EfiLoaderCode explicitly.

At the same time, use a page based allocation rather than a pool
allocation, which is more appropriate when loading PE/COFF images.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
shim.c