0012-libitm-disable-FORTIFY.patch (952B)
1 From 717346fbbd6642ba6b0c3af2deb3771794346507 Mon Sep 17 00:00:00 2001 2 From: Ariadne Conill <ariadne@dereferenced.org> 3 Date: Fri, 21 Aug 2020 06:53:36 +0000 4 Subject: [PATCH] libitm: disable FORTIFY 5 6 --- 7 libitm/configure.tgt | 10 ++++++++++ 8 1 file changed, 10 insertions(+) 9 10 diff --git a/libitm/configure.tgt b/libitm/configure.tgt 11 index 06e90973ef3..669e64236c3 100644 12 --- a/libitm/configure.tgt 13 +++ b/libitm/configure.tgt 14 @@ -47,6 +47,16 @@ if test "$gcc_cv_have_tls" = yes ; then 15 esac 16 fi 17 18 +# FIXME: error: inlining failed in call to always_inline 19 +# ‘int vfprintf(FILE*, const char*, __va_list_tag*)’ 20 +# : function body can be overwritten at link time 21 +# Disable Fortify in libitm for now. #508852 22 +case "${target}" in 23 + *-*-linux*) 24 + XCFLAGS="${XCFLAGS} -U_FORTIFY_SOURCE" 25 + ;; 26 +esac 27 + 28 # Map the target cpu to an ARCH sub-directory. At the same time, 29 # work out any special compilation flags as necessary. 30 case "${target_cpu}" in