|
Gerd Hoffmann |
3a213e |
From 46c6d0e6a1d971edef5846e352a81a097f8d51d5 Mon Sep 17 00:00:00 2001
|
|
Gerd Hoffmann |
3a213e |
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
Gerd Hoffmann |
3a213e |
Date: Fri, 10 Jun 2022 07:43:15 +0200
|
|
Gerd Hoffmann |
3a213e |
Subject: [PATCH 21/21] tools_def: add -fno-omit-frame-pointer to
|
|
Gerd Hoffmann |
3a213e |
GCC48_{IA32,X64}_CC_FLAGS
|
|
Gerd Hoffmann |
3a213e |
|
|
Gerd Hoffmann |
3a213e |
Fixes problems due to code assuming it runs with frame pointers and thus
|
|
Gerd Hoffmann |
3a213e |
updates rbp / ebp registers when switching stacks.
|
|
Gerd Hoffmann |
3a213e |
|
|
Gerd Hoffmann |
3a213e |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
Gerd Hoffmann |
3a213e |
---
|
|
Gerd Hoffmann |
3a213e |
BaseTools/Conf/tools_def.template | 4 ++--
|
|
Gerd Hoffmann |
3a213e |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
Gerd Hoffmann |
3a213e |
|
|
Gerd Hoffmann |
3a213e |
diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template
|
|
Gerd Hoffmann |
3a213e |
index 5901d9eecb5d..e3aa88fec31f 100755
|
|
Gerd Hoffmann |
3a213e |
--- a/BaseTools/Conf/tools_def.template
|
|
Gerd Hoffmann |
3a213e |
+++ b/BaseTools/Conf/tools_def.template
|
|
Gerd Hoffmann |
3a213e |
@@ -1884,8 +1884,8 @@ DEFINE GCC_DEPS_FLAGS = -MMD -MF $@.deps
|
|
Gerd Hoffmann |
3a213e |
|
|
Gerd Hoffmann |
3a213e |
DEFINE GCC48_ALL_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -ffunction-sections -fdata-sections -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings
|
|
Gerd Hoffmann |
3a213e |
DEFINE GCC48_IA32_X64_DLINK_COMMON = -nostdlib -Wl,-n,-q,--gc-sections -z common-page-size=0x20
|
|
Gerd Hoffmann |
3a213e |
-DEFINE GCC48_IA32_CC_FLAGS = DEF(GCC48_ALL_CC_FLAGS) -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address
|
|
Gerd Hoffmann |
3a213e |
-DEFINE GCC48_X64_CC_FLAGS = DEF(GCC48_ALL_CC_FLAGS) -m64 -fno-stack-protector "-DEFIAPI=__attribute__((ms_abi))" -maccumulate-outgoing-args -mno-red-zone -Wno-address -mcmodel=small -fpie -fno-asynchronous-unwind-tables -Wno-address
|
|
Gerd Hoffmann |
3a213e |
+DEFINE GCC48_IA32_CC_FLAGS = DEF(GCC48_ALL_CC_FLAGS) -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -fno-omit-frame-pointer
|
|
Gerd Hoffmann |
3a213e |
+DEFINE GCC48_X64_CC_FLAGS = DEF(GCC48_ALL_CC_FLAGS) -m64 -fno-stack-protector "-DEFIAPI=__attribute__((ms_abi))" -maccumulate-outgoing-args -mno-red-zone -Wno-address -mcmodel=small -fpie -fno-asynchronous-unwind-tables -Wno-address -fno-omit-frame-pointer
|
|
Gerd Hoffmann |
3a213e |
DEFINE GCC48_IA32_X64_ASLDLINK_FLAGS = DEF(GCC48_IA32_X64_DLINK_COMMON) -Wl,--entry,ReferenceAcpiTable -u ReferenceAcpiTable
|
|
Gerd Hoffmann |
3a213e |
DEFINE GCC48_IA32_X64_DLINK_FLAGS = DEF(GCC48_IA32_X64_DLINK_COMMON) -Wl,--entry,$(IMAGE_ENTRY_POINT) -u $(IMAGE_ENTRY_POINT) -Wl,-Map,$(DEST_DIR_DEBUG)/$(BASE_NAME).map,--whole-archive
|
|
Gerd Hoffmann |
3a213e |
DEFINE GCC48_IA32_DLINK2_FLAGS = -Wl,--defsym=PECOFF_HEADER_SIZE=0x220 DEF(GCC_DLINK2_FLAGS_COMMON)
|
|
Gerd Hoffmann |
3a213e |
--
|
|
Gerd Hoffmann |
3a213e |
2.36.1
|
|
Gerd Hoffmann |
3a213e |
|