From 8624f8685dd6538583e310db0fa4dc30e2f7d5bc Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 24 Apr 2018 09:41:01 -0700 Subject: [PATCH] x86/CET: Build target libraries with -mshstk With revision 259522: commit d59cfa9a4064339cf2bd2da828c4c133f13e57f0 Author: hjl 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 | 7 ++++++- config/cet.m4 | 2 +- 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 + + PR target/85485 + * cet.m4 (GCC_CET_FLAGS): Replace -mcet with -mshstk. + 2018-04-19 Jakub Jelinek - * 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 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]) -- 2.30.2