pmaports/cross/gcc-aarch64/0012-libitm-disable-FORTIFY.patch

34 lines
970 B
Diff
Raw Normal View History

From da46d99b1b7661a98064a45bdccf08c1867582b0 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
2020-11-17 15:10:31 +00:00
Subject: [PATCH 12/40] libitm: disable FORTIFY
2020-08-21 10:18:02 +00:00
---
libitm/configure.tgt | 10 ++++++++++
1 file changed, 10 insertions(+)
2020-08-21 10:18:02 +00:00
diff --git a/libitm/configure.tgt b/libitm/configure.tgt
index 04109160e91..107b957ece3 100644
--- a/libitm/configure.tgt
+++ b/libitm/configure.tgt
2020-08-21 10:18:02 +00:00
@@ -46,6 +46,16 @@ if test "$gcc_cv_have_tls" = yes ; then
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
--
2020-11-17 15:10:31 +00:00
2.29.2
2020-08-21 10:18:02 +00:00