aboutsummaryrefslogtreecommitdiff
path: root/config/cet.m4
diff options
context:
space:
mode:
Diffstat (limited to 'config/cet.m4')
-rw-r--r--config/cet.m48
1 files changed, 4 insertions, 4 deletions
diff --git a/config/cet.m4 b/config/cet.m4
index 23dd1f7..b53c1bb 100644
--- a/config/cet.m4
+++ b/config/cet.m4
@@ -3,14 +3,14 @@ dnl GCC_CET_FLAGS
dnl (SHELL-CODE_HANDLER)
dnl
AC_DEFUN([GCC_CET_FLAGS],[dnl
-GCC_ENABLE(cet, default, ,[enable Intel CET in target libraries],
- permit yes|no|default)
+GCC_ENABLE(cet, no, ,[enable Intel CET in target libraries],
+ permit yes|no|auto)
AC_MSG_CHECKING([for CET support])
case "$host" in
i[[34567]]86-*-linux* | x86_64-*-linux*)
case "$enable_cet" in
- default)
+ auto)
# Check if target supports multi-byte NOPs
# and if assembler supports CET insn.
AC_COMPILE_IFELSE(
@@ -42,7 +42,7 @@ asm ("setssbsy");
;;
esac
if test x$enable_cet = xyes; then
- $1="-fcf-protection -mcet"
+ $1="-fcf-protection -mshstk"
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])