summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorH.J. Lu <hjl@gcc.gnu.org>2018-04-24 09:41:01 -0700
committerH.J. Lu <hjl@gcc.gnu.org>2018-04-24 09:41:01 -0700
commit8624f8685dd6538583e310db0fa4dc30e2f7d5bc (patch)
tree9e553c374dcd209755e8b3ccfe81f145e664660a /config
parentc61199f2df364330e673d35d3fe60e092c3388dd (diff)
downloadgcc-8624f8685dd6538583e310db0fa4dc30e2f7d5bc.tar.gz
x86/CET: Build target libraries with -mshstk
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
Diffstat (limited to 'config')
-rw-r--r--config/ChangeLog7
-rw-r--r--config/cet.m42
2 files changed, 7 insertions, 2 deletions
diff --git a/config/ChangeLog b/config/ChangeLog
index ba360e10165..02b96ffac46 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -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>
diff --git a/config/cet.m4 b/config/cet.m4
index 04a0e05d2ff..b53c1bbd5cd 100644
--- a/config/cet.m4
+++ b/config/cet.m4
@@ -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])