aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattiwatti <mattiwatti@gmail.com>2019-10-07 07:09:16 +0200
committerMattiwatti <mattiwatti@gmail.com>2019-10-07 07:09:16 +0200
commite084160727efdd547608f5c02f67a9df21adcc30 (patch)
tree70948b503920ba7b4ef30fc7d0bbd7249864d736
parent22cd8379cd087eb8e6f06bf20cec768acc4b490c (diff)
Disable Spectre mitigation crap
-rw-r--r--Application/EfiDSEFix/src/EfiDSEFix.vcxproj1
-rw-r--r--Application/Loader/Loader.vcxproj1
-rw-r--r--EfiGuardDxe/EfiGuardDxe.vcxproj1
-rw-r--r--EfiGuardPkg.dsc3
4 files changed, 6 insertions, 0 deletions
diff --git a/Application/EfiDSEFix/src/EfiDSEFix.vcxproj b/Application/EfiDSEFix/src/EfiDSEFix.vcxproj
index eb6bc7a..f628844 100644
--- a/Application/EfiDSEFix/src/EfiDSEFix.vcxproj
+++ b/Application/EfiDSEFix/src/EfiDSEFix.vcxproj
@@ -21,6 +21,7 @@
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>v142</PlatformToolset>
+ <SpectreMitigation>false</SpectreMitigation>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
diff --git a/Application/Loader/Loader.vcxproj b/Application/Loader/Loader.vcxproj
index 6a27e96..c6aaa95 100644
--- a/Application/Loader/Loader.vcxproj
+++ b/Application/Loader/Loader.vcxproj
@@ -18,6 +18,7 @@
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
+ <SpectreMitigation>false</SpectreMitigation>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<Import Project="$(SolutionDir)\EfiGuard.props" />
diff --git a/EfiGuardDxe/EfiGuardDxe.vcxproj b/EfiGuardDxe/EfiGuardDxe.vcxproj
index f5cc621..bacd321 100644
--- a/EfiGuardDxe/EfiGuardDxe.vcxproj
+++ b/EfiGuardDxe/EfiGuardDxe.vcxproj
@@ -18,6 +18,7 @@
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
+ <SpectreMitigation>false</SpectreMitigation>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<Import Project="$(SolutionDir)\EfiGuard.props" />
diff --git a/EfiGuardPkg.dsc b/EfiGuardPkg.dsc
index 6f3e97b..1b50ced 100644
--- a/EfiGuardPkg.dsc
+++ b/EfiGuardPkg.dsc
@@ -87,6 +87,9 @@
# message #2415: variable "x" of static storage duration was declared but never referenced
INTEL:*_*_*_CC_FLAGS = /wd188,2415
+ # Pre-emptive strike for when this horrible option inevitably becomes the default
+ MSFT:*_*_*_CC_FLAGS = /Qspectre-
+
# Use sane linker flags instead of EDK2 defaults
MSFT:*_*_*_DLINK_FLAGS = /ALIGN:0x1000 /FILEALIGN:0x200 /SECTION:.pdata,!D /MERGE:.rdata=.text /DEBUG:FULL /NOVCFEATURE /NOCOFFGRPINFO /PDBALTPATH:%_PDB%
INTEL:*_*_*_DLINK_FLAGS = /ALIGN:0x1000 /FILEALIGN:0x200 /SECTION:.pdata,!D /MERGE:.rdata=.text /DEBUG:FULL /NOVCFEATURE /NOCOFFGRPINFO /PDBALTPATH:%_PDB%