]> git.proxmox.com Git - pve-edk2-firmware.git/blame - debian/patches/no-stack-protector-all-archs.diff
debian: update build and packaging from Debian upstream
[pve-edk2-firmware.git] / debian / patches / no-stack-protector-all-archs.diff
CommitLineData
a65627a8
TL
1Author: Steve Langasek <steve.langasek@ubuntu.com>
2Description: 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.
6Last-Updated: 2019-03-14
7Index: 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