Skip to content

Commit

Permalink
check for control flow integrity support in compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
busterb committed Jan 9, 2024
1 parent 0022b1a commit b9a8c39
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions m4/check-hardening-options.m4
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ AC_DEFUN([CHECK_C_HARDENING_OPTIONS], [
AC_SEARCH_LIBS([__stack_chk_guard],[ssp])
])
])
# Check for control-flow integrity support
AS_IF([test "x$HOST_OS" != "xdarwin"], [
CHECK_CFLAG([[-fcf-protection=full]])
])
])
# Restore CC, LD
Expand Down

0 comments on commit b9a8c39

Please sign in to comment.