]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - config/cet.m4
config: Sync with GCC
[thirdparty/binutils-gdb.git] / config / cet.m4
index 23dd1f7d27d3a82eb1a85518d8ef316226918c8c..b53c1bbd5cdef2d3241c192fe01b0ce02af9edcf 100644 (file)
@@ -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])