Merge PR #1474: enable Control-flow Enforcement Technology (CET) Shadow Stack mitigation

This commit is contained in:
Davide Beatrici authored and GitHub committed 2021-08-27 21:06:08 +02:00
commit 3cc85c1d51
1 file changed
+4 -1
+4 -1
View File
@@ -67,11 +67,14 @@ if(WIN32)
message("Setting CONTROL FLOW GUARD")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /guard:cf")
set(CMAKE_EXE_LINKER_FLAGS "/guard:cf /DYNAMICBASE")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /guard:cf /DYNAMICBASE")
message("Setting QSPECTRE")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /Qspectre")
message("Setting CETCOMPAT")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /CETCOMPAT")
endif()
if(UNIX)