]> git.proxmox.com Git - mirror_edk2.git/commit
StandaloneMmPkg/StandaloneMmCoreEntryPoint: relocate StMM core on the fly
authorArd Biesheuvel <ard.biesheuvel@arm.com>
Tue, 9 Jun 2020 08:34:27 +0000 (10:34 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 16 Jun 2020 16:15:00 +0000 (16:15 +0000)
commit493f2c69311806a214de2b3db7fdf7bc9162ea81
tree8dc0786a8c26cca89a1180c08323a233b4eb50d2
parentcdc686223a2d9b8c64831ffbc4b68ca16245aae0
StandaloneMmPkg/StandaloneMmCoreEntryPoint: relocate StMM core on the fly

Apply PE/COFF fixups when starting up the standalone MM core, so that
it can execute at any address regardless of the link time address.

Note that this requires the PE/COFF image to be emitted with its
relocation section preserved. Special care is taken to ensure that
TE images are dealt with correctly as well.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Acked-by: Jiewen Yao <Jiewen.yao@intel.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Tested-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
StandaloneMmPkg/Include/Library/AArch64/StandaloneMmCoreEntryPoint.h
StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/SetPermissions.c
StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/StandaloneMmCoreEntryPoint.c