From 0d3dd144988bf1cec95f38411f8d1d74d4320d81 Mon Sep 17 00:00:00 2001 From: Kun Qin Date: Fri, 22 Dec 2023 00:18:51 -0800 Subject: [PATCH] UefiCpuPkg: SmmCpuExceptionHandlerLib: Extend reloc flag to GCC When building standalone MM core module, the relocation is also disabled and this will introduce a linker break when this is done with GCC. Thus extending the flag to cover GCC builds as well. cherry-pick from 57e86944d3 Signed-off-by: Kun Qin --- .../CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf b/UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf index cc280a6ee79..e60c82f2f96 100644 --- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf +++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf @@ -63,3 +63,5 @@ [BuildOptions] XCODE:*_*_X64_NASM_FLAGS = -D NO_ABSOLUTE_RELOCS_IN_TEXT + # MU_CHANGE: Disable absolute relocations in text for GCC as well + GCC:*_*_X64_NASM_FLAGS = -D NO_ABSOLUTE_RELOCS_IN_TEXT