x86/CET: Build target libraries with -mshstk
authorH.J. Lu <hjl@gcc.gnu.org>
Tue, 24 Apr 2018 16:41:01 +0000 (09:41 -0700)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 24 Apr 2018 16:41:01 +0000 (09:41 -0700)
With revision 259522:

commit d59cfa9a4064339cf2bd2da828c4c133f13e57f0
Author: hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Fri Apr 20 13:30:13 2018 +0000

    Define __CET__ for -fcf-protection and remove -mibt

-mcet becomes an alias for -mshstk.

PR target/85485
* cet.m4 (GCC_CET_FLAGS): Replace -mcet with -mshstk.

From-SVN: r259608

config/ChangeLog
config/cet.m4

index ba360e1016579f8be09c909a6b894ae3022ecedf..02b96ffac465f9f69bbb6c7b464f6a0f4eb6e15f 100644 (file)
@@ -1,6 +1,11 @@
+2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR target/85485
+       * cet.m4 (GCC_CET_FLAGS): Replace -mcet with -mshstk.
+
 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
 
-       * config/cet.m4 (GCC_CET_FLAGS): Default to --disable-cet, replace
+       * cet.m4 (GCC_CET_FLAGS): Default to --disable-cet, replace
        --enable-cet=default with --enable-cet=auto.
 
 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
index 04a0e05d2ff987ece8bd7ddb41c36fb01c749ff4..b53c1bbd5cdef2d3241c192fe01b0ce02af9edcf 100644 (file)
@@ -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])