efi: change heap allocation type to GRUB_EFI_LOADER_CODE
authorLeif Lindholm <leif.lindholm@linaro.org>
Thu, 3 Aug 2017 10:04:32 +0000 (11:04 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 7 Aug 2017 17:03:34 +0000 (19:03 +0200)
commitf826330683675f0deb55b58fd229afd7d65fb053
tree72c87eb197f2841ca3ec2b14c5e507b8970fdc59
parent91212e0aa07e704a61e4540c18a27f149f5e51c3
efi: change heap allocation type to GRUB_EFI_LOADER_CODE

With upcoming changes to EDK2, allocations of type EFI_LOADER_DATA may
not return regions with execute ability. Since modules are loaded onto
the heap, change the heap allocation type to GRUB_EFI_LOADER_CODE in
order to permit execution on systems with this feature enabled.

Closes: 50420

Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
grub-core/kern/efi/mm.c