diff options
author | Leif Lindholm <quic_llindhol@quicinc.com> | 2024-08-05 18:32:19 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-09-05 01:50:41 +0000 |
commit | 2ddce71142a6243aa4dc64242553d6591eb58def (patch) | |
tree | 449a55dbbb30fa0474c2cdafea67c66bc750a938 /EmulatorPkg | |
parent | 99d60cbd3990fe8f5b86eaab40876fbbf9d99084 (diff) | |
download | edk2-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.inf | 1 |
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
|