Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -205,11 +201,6 @@ if(ENABLE_HARDENING)
if(AVO_LINKER_SUPPORTS_BSYMBOLIC_FUNCTIONS)
add_link_options($<$<NOT:$<CONFIG:Debug>>:-Wl,-Bsymbolic-functions>)
endif()
if(AVO_COMPILER_SUPPORTS_FSANITIZE_SAFE_STACK
AND AVO_LINKER_SUPPORTS_FSANITIZE_SAFE_STACK)
add_compile_options($<$<NOT:$<CONFIG:Debug>>:-fsanitize=safe-stack>)
add_link_options($<$<NOT:$<CONFIG:Debug>>:-fsanitize=safe-stack>)
endif()
if(AVO_LINKER_SUPPORTS_Z_DEFS)
add_link_options(-Wl,-z,defs)
endif()
Expand Down
Loading