summaryrefslogtreecommitdiffstats
path: root/EmulatorPkg
diff options
context:
space:
mode:
authorLeif Lindholm <quic_llindhol@quicinc.com>2024-08-05 18:32:19 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-09-05 01:50:41 +0000
commit2ddce71142a6243aa4dc64242553d6591eb58def (patch)
tree449a55dbbb30fa0474c2cdafea67c66bc750a938 /EmulatorPkg
parent99d60cbd3990fe8f5b86eaab40876fbbf9d99084 (diff)
downloadedk2-2ddce71142a6243aa4dc64242553d6591eb58def.tar.gz
edk2-2ddce71142a6243aa4dc64242553d6591eb58def.tar.bz2
edk2-2ddce71142a6243aa4dc64242553d6591eb58def.zip
EmulatorPkg: fix X64 Unix/Host segfault with GCC toolchain profile
Add the necessary toolchain override flags for ms_abi and LTO on X64 for the unversioned GCC toolchain profile. This resolves a runtime segmentation fault. Signed-off-by: Leif Lindholm <quic_llindhol@quicinc.com>
Diffstat (limited to 'EmulatorPkg')
-rw-r--r--EmulatorPkg/Unix/Host/Host.inf1
1 files changed, 1 insertions, 0 deletions
diff --git a/EmulatorPkg/Unix/Host/Host.inf b/EmulatorPkg/Unix/Host/Host.inf
index f5ebbed683..1b7481d1e0 100644
--- a/EmulatorPkg/Unix/Host/Host.inf
+++ b/EmulatorPkg/Unix/Host/Host.inf
@@ -124,6 +124,7 @@
GCC:*_GCC48_X64_CC_FLAGS = "-DEFIAPI=__attribute__((ms_abi))"
GCC:*_GCC49_X64_CC_FLAGS = "-DEFIAPI=__attribute__((ms_abi))"
GCC:*_GCC5_X64_CC_FLAGS = "-DEFIAPI=__attribute__((ms_abi))" -flto -DUSING_LTO -Os
+ GCC:*_GCC_X64_CC_FLAGS = "-DEFIAPI=__attribute__((ms_abi))" -flto -DUSING_LTO -Os
GCC:*_*_X64_PP_FLAGS == -m64 -E -x assembler-with-cpp -include $(DEST_DIR_DEBUG)/AutoGen.h
GCC:*_*_X64_ASM_FLAGS == -m64 -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGen.h