From 5bcef2b2807bb7c1d68f1f5cc92ac5aee65c3be5 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Wed, 3 Apr 2019 21:07:43 +0300 Subject: [PATCH] OcGuardLib: Disable stack canary as it is not compatible with LTO --- Library/OcGuardLib/OcGuardLib.inf | 1 - OcSupportPkg.dsc | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Library/OcGuardLib/OcGuardLib.inf b/Library/OcGuardLib/OcGuardLib.inf index b9cdc6a4..4eacf1d7 100644 --- a/Library/OcGuardLib/OcGuardLib.inf +++ b/Library/OcGuardLib/OcGuardLib.inf @@ -43,7 +43,6 @@ [LibraryClasses] BaseLib - [BuildOptions] XCODE:DEBUG_*_*_CC_FLAGS = -fno-stack-protector XCODE:NOOPT_*_*_CC_FLAGS = -fno-stack-protector diff --git a/OcSupportPkg.dsc b/OcSupportPkg.dsc index 5ae70914..986e7ccc 100644 --- a/OcSupportPkg.dsc +++ b/OcSupportPkg.dsc @@ -143,6 +143,6 @@ MSFT:DEBUG_*_*_CC_FLAGS = $(OCSUPPORTPKG_BUILD_OPTIONS_GEN) MSFT:NOOPT_*_*_CC_FLAGS = $(OCSUPPORTPKG_BUILD_OPTIONS_GEN) MSFT:RELEASE_*_*_CC_FLAGS = $(OCSUPPORTPKG_BUILD_OPTIONS_GEN) - XCODE:DEBUG_*_*_CC_FLAGS = -fstack-protector $(OCSUPPORTPKG_BUILD_OPTIONS_GEN) - XCODE:NOOPT_*_*_CC_FLAGS = -fstack-protector $(OCSUPPORTPKG_BUILD_OPTIONS_GEN) - XCODE:RELEASE_*_*_CC_FLAGS = -Wno-error -fstack-protector -flto $(OCSUPPORTPKG_BUILD_OPTIONS_GEN) + XCODE:DEBUG_*_*_CC_FLAGS = $(OCSUPPORTPKG_BUILD_OPTIONS_GEN) + XCODE:NOOPT_*_*_CC_FLAGS = $(OCSUPPORTPKG_BUILD_OPTIONS_GEN) + XCODE:RELEASE_*_*_CC_FLAGS = -Wno-error -flto $(OCSUPPORTPKG_BUILD_OPTIONS_GEN)