summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-06-27 11:08:03 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-06-27 11:17:16 -0700
commit8ebd3a45deef57d6bcc51bd569bdf3a467f06cbc (patch)
treeef4d2a012fe639fd8430d3a6bf67f9b2afb5c85c
parent5305f2042918480f114fb1f0d46736dde8eb2d7a (diff)
downloadgcc-hjl/cet/gcc-7-branch.tar.gz
Compile libgcc with -mibt -mshstkhjl/cet/gcc-7-branch
-rw-r--r--libgcc/config.host2
-rw-r--r--libgcc/config/i386/t-cet3
2 files changed, 4 insertions, 1 deletions
diff --git a/libgcc/config.host b/libgcc/config.host
index bedcf1017df..b9a11a37784 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -1351,7 +1351,7 @@ case ${host} in
i[34567]86-*-linux* | x86_64-*-linux* | \
i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
i[34567]86-*-gnu*)
- tmake_file="${tmake_file} t-tls i386/t-linux t-slibgcc-libgcc"
+ tmake_file="${tmake_file} t-tls i386/t-linux i386/t-cet t-slibgcc-libgcc"
if test "$libgcc_cv_cfi" = "yes"; then
tmake_file="${tmake_file} t-stack i386/t-stack-i386"
fi
diff --git a/libgcc/config/i386/t-cet b/libgcc/config/i386/t-cet
new file mode 100644
index 00000000000..64a4a37bebd
--- /dev/null
+++ b/libgcc/config/i386/t-cet
@@ -0,0 +1,3 @@
+HOST_LIBGCC2_CFLAGS += -mibt -mshstk
+
+CRTSTUFF_T_CFLAGS += -mibt -mshstk