|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
#
|
|
# Filename: package/.../musl/pkg/gcc/0012-libitm-disable-FORTIFY.patch
|
|
# Copyright (C) 2020 The OpenSDE Project
|
|
#
|
|
# More information can be found in the files COPYING and README.
|
|
#
|
|
# This patch file is dual-licensed. It is available under the license the
|
|
# patched project is licensed under, as long as it is an OpenSource license
|
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
|
# of the GNU General Public License as published by the Free Software
|
|
# Foundation; either version 2 of the License, or (at your option) any later
|
|
# version.
|
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
|
|
From cef5e0336cfdf4afd0e01fa9e562f686b234697a Mon Sep 17 00:00:00 2001
|
|
From: Ariadne Conill <ariadne@dereferenced.org>
|
|
Date: Fri, 21 Aug 2020 06:53:36 +0000
|
|
Subject: [PATCH 12/30] libitm: disable FORTIFY
|
|
|
|
---
|
|
libitm/configure.tgt | 10 ++++++++++
|
|
1 file changed, 10 insertions(+)
|
|
|
|
diff --git a/libitm/configure.tgt b/libitm/configure.tgt
|
|
index 04109160e91..107b957ece3 100644
|
|
--- a/libitm/configure.tgt
|
|
+++ b/libitm/configure.tgt
|
|
@@ -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
|
|
--
|
|
2.27.0
|
|
|