fix linker warnings for kernel modules

This commit is contained in:
Sinaei 2024-03-11 12:47:41 +09:00
parent 9c7a3135df
commit 769eddf1bd
4 changed files with 17 additions and 6 deletions

View file

@ -8,11 +8,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
New release of the HyperDbg Debugger.
### Added
- Add user-defined functions and variable types in script engine ([link](https://github.com/HyperDbg/HyperDbg/pull/342))
- Add user-defined functions and variable types in script engine thanks to [@xmaple555](https://github.com/xmaple555) ([link](https://github.com/HyperDbg/HyperDbg/pull/342))
### Changed
- Fix debuggee crash after running the '.debug close' command on the debugger
- After downloading new symbols it is automatically loaded
- After downloading new symbols it is automatically loaded
- The problem with adding edge MTRR pages is fixed thanks to [@Maladiy](https://github.com/Maladiy) ([link](https://github.com/HyperDbg/HyperDbg/pull/347))
- All compiler/linker warnings of kernel-mode modules are fixed
- Kernel modules of HyperDbg now compile with "treat warning as error"
## [0.8.1.0] - 2024-02-01
New release of the HyperDbg Debugger.

View file

@ -73,7 +73,7 @@
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<TreatLinkerWarningAsErrors>false</TreatLinkerWarningAsErrors>
<TreatLinkerWarningAsErrors>true</TreatLinkerWarningAsErrors>
<EntryPointSymbol>DriverEntry</EntryPointSymbol>
<AdditionalDependencies>$(SolutionDir)build\bin\$(Configuration)\hyperlog.lib;$(SolutionDir)build\bin\$(Configuration)\hprdbghv.lib;$(SolutionDir)build\bin\$(Configuration)\kdserial.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
@ -91,7 +91,7 @@
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<TreatLinkerWarningAsErrors>false</TreatLinkerWarningAsErrors>
<TreatLinkerWarningAsErrors>true</TreatLinkerWarningAsErrors>
<EntryPointSymbol>DriverEntry</EntryPointSymbol>
<AdditionalDependencies>$(SolutionDir)build\bin\$(Configuration)\hyperlog.lib;$(SolutionDir)build\bin\$(Configuration)\hprdbghv.lib;$(SolutionDir)build\bin\$(Configuration)\kdserial.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>

View file

@ -0,0 +1,6 @@
LIBRARY hyperlog
EXPORTS
DllInitialize PRIVATE
DllUnload PRIVATE

View file

@ -68,9 +68,10 @@
<TreatWarningAsError>true</TreatWarningAsError>
</ClCompile>
<Link>
<TreatLinkerWarningAsErrors>false</TreatLinkerWarningAsErrors>
<TreatLinkerWarningAsErrors>true</TreatLinkerWarningAsErrors>
<EntryPointSymbol />
<NoEntryPoint>true</NoEntryPoint>
<ModuleDefinitionFile>hyperlog.def</ModuleDefinitionFile>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='release|x64'">
@ -82,9 +83,10 @@
<TreatWarningAsError>true</TreatWarningAsError>
</ClCompile>
<Link>
<TreatLinkerWarningAsErrors>false</TreatLinkerWarningAsErrors>
<TreatLinkerWarningAsErrors>true</TreatLinkerWarningAsErrors>
<EntryPointSymbol />
<NoEntryPoint>true</NoEntryPoint>
<ModuleDefinitionFile>hyperlog.def</ModuleDefinitionFile>
</Link>
</ItemDefinitionGroup>
<ItemGroup>