diff --git a/CMakeLists.txt b/CMakeLists.txt index 7253d12..9caf801 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -158,8 +158,6 @@ if(ENABLE_HARDENING) check_cxx_compiler_flag(-fcf-protection AVO_COMPILER_SUPPORTS_FCF_PROTECTION) check_cxx_compiler_flag(-fno-common AVO_COMPILER_SUPPORTS_FNO_COMMON) - check_cxx_compiler_flag(-fsanitize=safe-stack - AVO_COMPILER_SUPPORTS_FSANITIZE_SAFE_STACK) check_cxx_compiler_flag(-fstack-clash-protection AVO_COMPILER_SUPPORTS_FSTACK_CLASH_PROTECTION) check_cxx_compiler_flag(-fstack-protector-strong @@ -192,8 +190,6 @@ if(ENABLE_HARDENING) check_linker_flag(CXX -Wl,-Bsymbolic-functions AVO_LINKER_SUPPORTS_BSYMBOLIC_FUNCTIONS) - check_linker_flag(CXX -fsanitize=safe-stack - AVO_LINKER_SUPPORTS_FSANITIZE_SAFE_STACK) check_linker_flag(CXX -Wl,-z,defs AVO_LINKER_SUPPORTS_Z_DEFS) check_linker_flag(CXX -Wl,-z,noexecheap AVO_LINKER_SUPPORTS_Z_NOEXECHEAP) check_linker_flag(CXX -Wl,-z,noexecstack @@ -205,11 +201,6 @@ if(ENABLE_HARDENING) if(AVO_LINKER_SUPPORTS_BSYMBOLIC_FUNCTIONS) add_link_options($<$>:-Wl,-Bsymbolic-functions>) endif() - if(AVO_COMPILER_SUPPORTS_FSANITIZE_SAFE_STACK - AND AVO_LINKER_SUPPORTS_FSANITIZE_SAFE_STACK) - add_compile_options($<$>:-fsanitize=safe-stack>) - add_link_options($<$>:-fsanitize=safe-stack>) - endif() if(AVO_LINKER_SUPPORTS_Z_DEFS) add_link_options(-Wl,-z,defs) endif()