diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2023-04-03 22:29:18 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-04-06 06:52:55 +0000 |
commit | e5fcaeb1331d8c33304aadd32c7ea7b460ecf21f (patch) | |
tree | 72bffde4c3da0f472eb2dcf5978e5d24aafc6e65 /OvmfPkg/CloudHv | |
parent | 4764aa50ef986e8f1ae271efb8363dfece3b3fc3 (diff) | |
download | edk2-e5fcaeb1331d8c33304aadd32c7ea7b460ecf21f.tar.gz edk2-e5fcaeb1331d8c33304aadd32c7ea7b460ecf21f.tar.bz2 edk2-e5fcaeb1331d8c33304aadd32c7ea7b460ecf21f.zip |
UefiCpuPkg/CpuExceptionHandlerLib: Make runtime fixups XCODE-only
The CPU exception handler library code was rewritten at some point to
populate the vector code templates with absolute references at runtime,
given that the XCODE linker does not permit absolute references in
executable code when creating PIE executables.
This is rather unfortunate, as this prevents us from using strict
permissions on the memory mappings, given that the .text section needs
to be writable at runtime for this arrangement to work.
So let's make this hack XCODE-only, by setting a preprocessor #define
from the command line when using the XCODE toolchain, and only including
the runtime fixup code when the macro is defined.
While at it, rename the Xcode5ExceptionHandlerAsm.nasm source file and
drop the Xcode5 prefix: this code is used by other toolchains too.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Diffstat (limited to 'OvmfPkg/CloudHv')
0 files changed, 0 insertions, 0 deletions