2021-04-25 11:08:48 +00:00
|
|
|
|
From 07517ed455bf3f03b1be7a5c72d3705b22780a15 Mon Sep 17 00:00:00 2001
|
2020-08-21 10:18:02 +00:00
|
|
|
|
From: Ariadne Conill <ariadne@dereferenced.org>
|
|
|
|
|
Date: Fri, 21 Aug 2020 06:53:36 +0000
|
2021-04-25 11:08:48 +00:00
|
|
|
|
Subject: [PATCH] libitm: disable FORTIFY
|
2018-12-12 17:14:55 +00:00
|
|
|
|
|
2020-08-21 10:18:02 +00:00
|
|
|
|
---
|
|
|
|
|
libitm/configure.tgt | 10 ++++++++++
|
|
|
|
|
1 file changed, 10 insertions(+)
|
2018-12-12 17:14:55 +00:00
|
|
|
|
|
2020-08-21 10:18:02 +00:00
|
|
|
|
diff --git a/libitm/configure.tgt b/libitm/configure.tgt
|
2021-03-14 10:32:02 +00:00
|
|
|
|
index d1beb5c9ec8..c2b50b95c01 100644
|
2018-12-12 17:14:55 +00:00
|
|
|
|
--- a/libitm/configure.tgt
|
|
|
|
|
+++ b/libitm/configure.tgt
|
2021-03-14 10:32:02 +00:00
|
|
|
|
@@ -47,6 +47,16 @@ if test "$gcc_cv_have_tls" = yes ; then
|
2018-12-12 17:14:55 +00:00
|
|
|
|
esac
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
+# FIXME: error: inlining failed in call to always_inline
|
|
|
|
|
+# ‘int vfprintf(FILE*, const char*, __va_list_tag*)’
|
|
|
|
|
+# : function body can be overwritten at link time
|
|
|
|
|
+# Disable Fortify in libitm for now. #508852
|
|
|
|
|
+case "${target}" in
|
|
|
|
|
+ *-*-linux*)
|
|
|
|
|
+ XCFLAGS="${XCFLAGS} -U_FORTIFY_SOURCE"
|
|
|
|
|
+ ;;
|
|
|
|
|
+esac
|
|
|
|
|
+
|
|
|
|
|
# Map the target cpu to an ARCH sub-directory. At the same time,
|
|
|
|
|
# work out any special compilation flags as necessary.
|
|
|
|
|
case "${target_cpu}" in
|
2020-08-21 10:18:02 +00:00
|
|
|
|
--
|
2021-03-28 18:49:36 +00:00
|
|
|
|
2.31.0
|
2020-08-21 10:18:02 +00:00
|
|
|
|
|