Windows: enable high-entropy ASLR where available

This commit is contained in:
iDunk5400 2019-10-24 21:40:11 +02:00
parent 3816ac24f0
commit 78b076c7f2
No known key found for this signature in database
GPG Key ID: 0F1715596D812FD8
1 changed files with 1 additions and 0 deletions

View File

@ -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}")