[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/xencrsh/xencrsh.vcxproj | 4 ++++ vs2019/xendisk/xendisk.vcxproj | 4 ++++ vs2019/xenvbd/xenvbd.vcxproj | 4 ++++ vs2022/xencrsh/xencrsh.vcxproj | 4 ++++ vs2022/xendisk/xendisk.vcxproj | 4 ++++ vs2022/xenvbd/xenvbd.vcxproj | 4 ++++ 6 files changed, 24 insertions(+) diff --git a/vs2019/xencrsh/xencrsh.vcxproj b/vs2019/xencrsh/xencrsh.vcxproj index 5433a39..a7d1c68 100644 --- a/vs2019/xencrsh/xencrsh.vcxproj +++ b/vs2019/xencrsh/xencrsh.vcxproj @@ -34,8 +34,11 @@ <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers> <ModuleDefinitionFile>../../src/xencrsh/xencrsh.def</ModuleDefinitionFile> <AdditionalDependencies>$(DDK_LIB_PATH)/storport.lib;$(DDK_LIB_PATH)/libcntpr.lib;%(AdditionalDependencies)</AdditionalDependencies> + <AdditionalOptions>/INTEGRITYCHECK %(AdditionalOptions)</AdditionalOptions> <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> <CETCompat>true</CETCompat> + <GenerateMapFile>true</GenerateMapFile> + <MapExports>true</MapExports> </Link> <DriverSign> <FileDigestAlgorithm>sha256</FileDigestAlgorithm> @@ -61,6 +64,7 @@ <ItemGroup> <FilesToPackage Include="$(TargetPath)" /> <FilesToPackage Include="$(OutDir)$(TargetName).pdb" /> + <FilesToPackage Include="$(OutDir)$(TargetName).map" /> </ItemGroup> <ItemGroup> <ClCompile Include="..\..\src\xencrsh\austere.c" /> diff --git a/vs2019/xendisk/xendisk.vcxproj b/vs2019/xendisk/xendisk.vcxproj index 6e714ae..25b195f 100644 --- a/vs2019/xendisk/xendisk.vcxproj +++ b/vs2019/xendisk/xendisk.vcxproj @@ -32,8 +32,11 @@ </ResourceCompile> <Link> <AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies> + <AdditionalOptions>/INTEGRITYCHECK %(AdditionalOptions)</AdditionalOptions> <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> <CETCompat>true</CETCompat> + <GenerateMapFile>true</GenerateMapFile> + <MapExports>true</MapExports> </Link> <DriverSign> <FileDigestAlgorithm>sha256</FileDigestAlgorithm> @@ -64,6 +67,7 @@ <ItemGroup> <FilesToPackage Include="$(TargetPath)" /> <FilesToPackage Include="$(OutDir)$(TargetName).pdb" /> + <FilesToPackage Include="$(OutDir)$(TargetName).map" /> </ItemGroup> <ItemGroup> <ClCompile Include="../../src/xendisk/driver.c" /> diff --git a/vs2019/xenvbd/xenvbd.vcxproj b/vs2019/xenvbd/xenvbd.vcxproj index 470d16d..8ebb58c 100644 --- a/vs2019/xenvbd/xenvbd.vcxproj +++ b/vs2019/xenvbd/xenvbd.vcxproj @@ -32,8 +32,11 @@ </ResourceCompile> <Link> <AdditionalDependencies>$(ProjectDir)..\$(ConfigurationName)\$(Platform)\xencrsh.lib;$(DDK_LIB_PATH)/storport.lib;$(DDK_LIB_PATH)/libcntpr.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/xenvbd/driver.c" /> diff --git a/vs2022/xencrsh/xencrsh.vcxproj b/vs2022/xencrsh/xencrsh.vcxproj index 2026310..93bd705 100644 --- a/vs2022/xencrsh/xencrsh.vcxproj +++ b/vs2022/xencrsh/xencrsh.vcxproj @@ -34,8 +34,11 @@ <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers> <ModuleDefinitionFile>../../src/xencrsh/xencrsh.def</ModuleDefinitionFile> <AdditionalDependencies>$(DDK_LIB_PATH)/storport.lib;$(DDK_LIB_PATH)/libcntpr.lib;%(AdditionalDependencies)</AdditionalDependencies> + <AdditionalOptions>/INTEGRITYCHECK %(AdditionalOptions)</AdditionalOptions> <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> <CETCompat>true</CETCompat> + <GenerateMapFile>true</GenerateMapFile> + <MapExports>true</MapExports> </Link> <DriverSign> <FileDigestAlgorithm>sha256</FileDigestAlgorithm> @@ -56,6 +59,7 @@ <ItemGroup> <FilesToPackage Include="$(TargetPath)" /> <FilesToPackage Include="$(OutDir)$(TargetName).pdb" /> + <FilesToPackage Include="$(OutDir)$(TargetName).map" /> </ItemGroup> <ItemGroup> <ClCompile Include="..\..\src\xencrsh\austere.c" /> diff --git a/vs2022/xendisk/xendisk.vcxproj b/vs2022/xendisk/xendisk.vcxproj index 2fe56f5..d7df663 100644 --- a/vs2022/xendisk/xendisk.vcxproj +++ b/vs2022/xendisk/xendisk.vcxproj @@ -32,8 +32,11 @@ </ResourceCompile> <Link> <AdditionalDependencies>%(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/xendisk/driver.c" /> diff --git a/vs2022/xenvbd/xenvbd.vcxproj b/vs2022/xenvbd/xenvbd.vcxproj index 6d51630..7ccaa99 100644 --- a/vs2022/xenvbd/xenvbd.vcxproj +++ b/vs2022/xenvbd/xenvbd.vcxproj @@ -32,8 +32,11 @@ </ResourceCompile> <Link> <AdditionalDependencies>$(ProjectDir)..\$(ConfigurationName)\$(Platform)\xencrsh.lib;$(DDK_LIB_PATH)/storport.lib;$(DDK_LIB_PATH)/libcntpr.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/xenvbd/driver.c" /> -- 2.41.0.windows.3
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |