diff options
Diffstat (limited to 'meta/recipes-core/ovmf/ovmf/no-stack-protector-all-archs.patch')
-rw-r--r-- | meta/recipes-core/ovmf/ovmf/no-stack-protector-all-archs.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-core/ovmf/ovmf/no-stack-protector-all-archs.patch b/meta/recipes-core/ovmf/ovmf/no-stack-protector-all-archs.patch new file mode 100644 index 0000000000..25a09c5ce3 --- /dev/null +++ b/meta/recipes-core/ovmf/ovmf/no-stack-protector-all-archs.patch | |||
@@ -0,0 +1,19 @@ | |||
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.4 and later. | ||
6 | Last-Updated: 2016-04-12 | ||
7 | Index: git/BaseTools/Conf/tools_def.template | ||
8 | =================================================================== | ||
9 | --- git.orig/BaseTools/Conf/tools_def.template | ||
10 | +++ git/BaseTools/Conf/tools_def.template | ||
11 | @@ -4368,7 +4368,7 @@ DEFINE GCC_IPF_RC_FLAGS = -I | ||
12 | DEFINE GCC_ARM_RC_FLAGS = -I binary -O elf32-littlearm -B arm --rename-section .data=.hii | ||
13 | DEFINE GCC_AARCH64_RC_FLAGS = -I binary -O elf64-littleaarch64 -B aarch64 --rename-section .data=.hii | ||
14 | |||
15 | -DEFINE GCC44_ALL_CC_FLAGS = -g -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -ffunction-sections -fdata-sections -include AutoGen.h -fno-common -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings | ||
16 | +DEFINE GCC44_ALL_CC_FLAGS = -g -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -ffunction-sections -fdata-sections -fno-stack-protector -include AutoGen.h -fno-common -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings | ||
17 | DEFINE GCC44_IA32_CC_FLAGS = DEF(GCC44_ALL_CC_FLAGS) -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -fno-PIE -no-pie | ||
18 | DEFINE GCC44_X64_CC_FLAGS = DEF(GCC44_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 | ||
19 | DEFINE GCC44_IA32_X64_DLINK_COMMON = -nostdlib -Wl,-n,-q,--gc-sections -z common-page-size=0x20 | ||