You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pe: Add tests for TLS parser and characteristics constants (#426)
* pe: add tests for TLS parser and characteristics constants
* Fix panic on malformed callbacks may cause subtract with overflow
* Add reproducible cxx project
-`ENABLE_TLS`: if defined, compile the binary with Thread Local Storage (TLS) enabled.
6
+
7
+
## How to build
8
+
9
+
This project is designed to be compiled by Clang (`clang-cl`) _not_ MSVC toolchain, primarily because 1) MSVC linker supports more features and may unexpectedly generate larger binaries than LLD linker under Clang, 2) compiler and linker flags are designed for specifically Clang for best efforts in reducing size of the resulting binary, 3) sometimes LLD links much smarter e.g., metadatas such as unnecessary rich headers (can be disabled by `/EMITTOOLVERSIONINFO:NO`).
10
+
11
+
While MSVC toolchains are theoretically possible; but not recommended.
If you do not have or not willing to install Clang under Visual Studio individual components, [customize the build by folder for MSBuild](https://learn.microsoft.com/en-us/visualstudio/msbuild/customize-by-directory?view=vs-2022) by deploying following `Directory.build.props` right next to the `.sln`:
0 commit comments