summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/AmdSev
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2023-04-03 22:29:18 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-04-06 06:52:55 +0000
commite5fcaeb1331d8c33304aadd32c7ea7b460ecf21f (patch)
tree72bffde4c3da0f472eb2dcf5978e5d24aafc6e65 /OvmfPkg/AmdSev
parent4764aa50ef986e8f1ae271efb8363dfece3b3fc3 (diff)
downloadedk2-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/AmdSev')
0 files changed, 0 insertions, 0 deletions