]> xenbits.xensource.com Git - pvdrivers/win/xennet.git/commitdiff
Add /CETCOMPAT to linker options
authorOwen Smith <owen.smith@citrix.com>
Tue, 26 Oct 2021 07:12:08 +0000 (08:12 +0100)
committerPaul Durrant <pdurrant@amazon.com>
Sun, 28 Nov 2021 20:31:41 +0000 (12:31 -0800)
The "Hardware Enforced Stack Protection Compatability" test introduced with the
Server 2022 HLK requires drivers to be linked with /CETCOMPAT

Signed-off-by: Owen Smith <owen.smith@citrix.com>
vs2019/xennet/xennet.vcxproj

index ca896109e4fcded75fde34509167056d2d7157aa..d79a6917513c4c60379f7f5e5623e41364d40edb 100644 (file)
@@ -35,6 +35,7 @@
       <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
       <AdditionalDependencies>$(DDK_LIB_PATH)\ndis.lib;$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/aux_klib.lib;$(DDK_LIB_PATH)/procgrp.lib;%(AdditionalDependencies)</AdditionalDependencies>
       <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
+      <CETCompat>true</CETCompat>
     </Link>
     <DriverSign>
       <FileDigestAlgorithm>sha256</FileDigestAlgorithm>