-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use CMAKE 3.9 property to enable LTCG instead of manual options.
Link with full warnings, and warnings as errors, on both clang and cl. Enable fast optimizations on clang builds too. Compile with permissive- on VS for standards confirmance Remove #pragmas Remove linker garbage that VS adds Build the DLL as a driver so that it has the correct non-paged pool flags and can be used in KM Remove global variable pointers and leverage global structures directly. This has the side effect of removing the need for any initialized .data section, as well as removing .reloc completely. Remove full PDB name of my computer :) Remove manifest in DLL for kernel compatibility Remove usage of unused unions and structure names. Define __security_check_cookie to make CL happy -- there are no stack buffers at all, and linking with BufferOverflowU.lib simply adds 4KB of UM code that is not called by anything. This also removes the need for an import directory and makes the DLL usable in kernel-mode.
- Loading branch information
Alex Ionescu
committed
Apr 18, 2020
1 parent
3341bf2
commit 2df7adf
Showing
12 changed files
with
166 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.