[PATCH 1/5] x86/CET: Build target libraries with -mshstk
H.J. Lu
hjl.tools@gmail.com
Sun Apr 22 13:48:00 GMT 2018
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.
---
config/cet.m4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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.14.3
More information about the Gcc-patches
mailing list