[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] Generate map files and enable integrity check
Enable linker options to generates map files, to help debugging crashdumps Adds map files to output package Add /INTEGRITYCHECK to linker options https://learn.microsoft.com/en-us/cpp/build/reference/map-generate-mapfile?view=msvc-170 https://learn.microsoft.com/en-us/cpp/build/reference/mapinfo-include-information-in-mapfile?view=msvc-170 https://learn.microsoft.com/en-us/cpp/build/reference/integritycheck-require-signature-check?view=msvc-170 Signed-off-by: Owen Smith <owen.smith@xxxxxxxxx> --- vs2019/xenvif/xenvif.vcxproj | 4 ++++ vs2022/xenvif/xenvif.vcxproj | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/vs2019/xenvif/xenvif.vcxproj b/vs2019/xenvif/xenvif.vcxproj index d070a03..0412426 100644 --- a/vs2019/xenvif/xenvif.vcxproj +++ b/vs2019/xenvif/xenvif.vcxproj @@ -32,8 +32,11 @@ </ResourceCompile> <Link> <AdditionalDependencies>$(DDK_LIB_PATH)/Rtlver.lib;$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/aux_klib.lib;$(DDK_LIB_PATH)/ksecdd.lib;$(DDK_LIB_PATH)/procgrp.lib;%(AdditionalDependencies)</AdditionalDependencies> + <AdditionalOptions>/INTEGRITYCHECK %(AdditionalOptions)</AdditionalOptions> <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> <CETCompat>true</CETCompat> + <GenerateMapFile>true</GenerateMapFile> + <MapExports>true</MapExports> </Link> <DriverSign> <FileDigestAlgorithm>sha256</FileDigestAlgorithm> @@ -65,6 +68,7 @@ <ItemGroup> <FilesToPackage Include="$(TargetPath)" /> <FilesToPackage Include="$(OutDir)$(TargetName).pdb" /> + <FilesToPackage Include="$(OutDir)$(TargetName).map" /> </ItemGroup> <ItemGroup> <ClCompile Include="../../src/xenvif/bus.c" /> diff --git a/vs2022/xenvif/xenvif.vcxproj b/vs2022/xenvif/xenvif.vcxproj index 85c0a05..be84232 100644 --- a/vs2022/xenvif/xenvif.vcxproj +++ b/vs2022/xenvif/xenvif.vcxproj @@ -32,8 +32,11 @@ </ResourceCompile> <Link> <AdditionalDependencies>$(DDK_LIB_PATH)/Rtlver.lib;$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/aux_klib.lib;$(DDK_LIB_PATH)/ksecdd.lib;$(DDK_LIB_PATH)/procgrp.lib;%(AdditionalDependencies)</AdditionalDependencies> + <AdditionalOptions>/INTEGRITYCHECK %(AdditionalOptions)</AdditionalOptions> <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> <CETCompat>true</CETCompat> + <GenerateMapFile>true</GenerateMapFile> + <MapExports>true</MapExports> </Link> <DriverSign> <FileDigestAlgorithm>sha256</FileDigestAlgorithm> @@ -57,6 +60,7 @@ <ItemGroup> <FilesToPackage Include="$(TargetPath)" /> <FilesToPackage Include="$(OutDir)$(TargetName).pdb" /> + <FilesToPackage Include="$(OutDir)$(TargetName).map" /> </ItemGroup> <ItemGroup> <ClCompile Include="../../src/xenvif/bus.c" /> -- 2.41.0.windows.3
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |