]>
Commit | Line | Data |
---|---|---|
a65627a8 TL |
1 | Author: Steve Langasek <steve.langasek@ubuntu.com> |
2 | Description: pass -fno-stack-protector to all GCC toolchains | |
3 | The upstream build rules inexplicably pass -fno-stack-protector only | |
4 | when building for i386 and amd64. Add this essential argument to the | |
5 | generic rules for gcc 4.8 and later. | |
6 | Last-Updated: 2019-03-14 | |
7 | Index: edk2/BaseTools/Conf/tools_def.template | |
8 | =================================================================== | |
9 | --- edk2.orig/BaseTools/Conf/tools_def.template | |
10 | +++ edk2/BaseTools/Conf/tools_def.template | |
11 | @@ -1900,7 +1900,7 @@ DEFINE GCC_RISCV64_RC_FLAGS = -I | |
12 | # GCC Build Flag for included header file list generation\r | |
13 | DEFINE GCC_DEPS_FLAGS = -MMD -MF $@.deps\r | |
14 | \r | |
15 | -DEFINE GCC48_ALL_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -ffunction-sections -fdata-sections -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings\r | |
16 | +DEFINE GCC48_ALL_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -ffunction-sections -fdata-sections -fno-stack-protector -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings\r | |
17 | DEFINE GCC48_IA32_X64_DLINK_COMMON = -nostdlib -Wl,-n,-q,--gc-sections -z common-page-size=0x20\r | |
18 | 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\r | |
19 | 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\r |