From 78b076c7f2731911346978fd5a481a82190b3b8e Mon Sep 17 00:00:00 2001 From: iDunk5400 Date: Thu, 24 Oct 2019 21:40:11 +0200 Subject: Windows: enable high-entropy ASLR where available --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e9dae833..03ede0483 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -669,6 +669,7 @@ else() if (WIN32) add_linker_flag_if_supported(-Wl,--dynamicbase LD_SECURITY_FLAGS) add_linker_flag_if_supported(-Wl,--nxcompat LD_SECURITY_FLAGS) + add_linker_flag_if_supported(-Wl,--high-entropy-va LD_SECURITY_FLAGS) endif() message(STATUS "Using C security hardening flags: ${C_SECURITY_FLAGS}") -- cgit v1.2.3