From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9F203138359 for ; Tue, 14 Jul 2020 07:17:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7C0C9E0831; Tue, 14 Jul 2020 07:17:20 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6163DE0831 for ; Tue, 14 Jul 2020 07:17:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D79D434F3F4 for ; Tue, 14 Jul 2020 07:17:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E31FC291 for ; Tue, 14 Jul 2020 07:17:10 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1594710742.6c5ced06c025ddc8b34d02c7597d0f0f0932393f.slyfox@gentoo> Subject: [gentoo-commits] proj/gcc-patches:master commit in: 10.1.0/gentoo/ X-VCS-Repository: proj/gcc-patches X-VCS-Files: 10.1.0/gentoo/37_all_sparc_pie_TEXTREL.patch 10.1.0/gentoo/README.history X-VCS-Directories: 10.1.0/gentoo/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 6c5ced06c025ddc8b34d02c7597d0f0f0932393f X-VCS-Branch: master Date: Tue, 14 Jul 2020 07:17:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 117637d2-4612-4308-ba54-094ce40ff4da X-Archives-Hash: b3e6f12ddb44555d6a47a052fbcfbea3 commit: 6c5ced06c025ddc8b34d02c7597d0f0f0932393f Author: Sergei Trofimovich gentoo org> AuthorDate: Tue Jul 14 07:12:22 2020 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Tue Jul 14 07:12:22 2020 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=6c5ced06 10.1.0: use crtendS.o on sparc-linux-pie This should fix TEXTREL warning when linking most binaries on sparc. Bug: https://gcc.gnu.org/PR96190 Bug: https://bugs.gentoo.org/619706 Signed-off-by: Sergei Trofimovich gentoo.org> 10.1.0/gentoo/37_all_sparc_pie_TEXTREL.patch | 49 ++++++++++++++++++++++++++++ 10.1.0/gentoo/README.history | 3 ++ 2 files changed, 52 insertions(+) diff --git a/10.1.0/gentoo/37_all_sparc_pie_TEXTREL.patch b/10.1.0/gentoo/37_all_sparc_pie_TEXTREL.patch new file mode 100644 index 0000000..059f744 --- /dev/null +++ b/10.1.0/gentoo/37_all_sparc_pie_TEXTREL.patch @@ -0,0 +1,49 @@ +https://gcc.gnu.org/PR96190 +https://bugs.gentoo.org/619706 + +From 6acaa3c1c1e6202af9871aa304ed772939d51311 Mon Sep 17 00:00:00 2001 +From: Sergei Trofimovich +Date: Tue, 14 Jul 2020 07:48:42 +0100 +Subject: [PATCH] sparc/sparc64: use PIE_SPEC to select crtendS.o [PR96190] + +In --enable-default-pie mode compiler should switch from +using crtend.o to crtendS.o. On sparc it is especially visible +because crtend.o contains PIC-unfriendly code. + +gcc: + +2020-07-14 Sergei Trofimovich + + PR driver/96190 + * config/sparc/linux.h: Use PIE_SPEC to select crtendS.o. + * config/sparc/linux64.h: ditto +--- + gcc/config/sparc/linux.h | 2 +- + gcc/config/sparc/linux64.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +--- a/gcc/config/sparc/linux.h ++++ b/gcc/config/sparc/linux.h +@@ -35,7 +35,7 @@ along with GCC; see the file COPYING3. If not see + + #undef ENDFILE_SPEC + #define ENDFILE_SPEC \ +- "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s\ ++ "%{shared|" PIE_SPEC ":crtendS.o%s;:crtend.o%s} crtn.o%s\ + %{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s}" + + /* -mcpu=native handling only makes sense with compiler running on +--- a/gcc/config/sparc/linux64.h ++++ b/gcc/config/sparc/linux64.h +@@ -52,7 +52,7 @@ along with GCC; see the file COPYING3. If not see + + #undef ENDFILE_SPEC + #define ENDFILE_SPEC \ +- "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s\ ++ "%{shared|" PIE_SPEC ":crtendS.o%s;:crtend.o%s} crtn.o%s\ + %{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s}" + + /* The default code model. */ +-- +2.27.0 + diff --git a/10.1.0/gentoo/README.history b/10.1.0/gentoo/README.history index 6fab577..f081231 100644 --- a/10.1.0/gentoo/README.history +++ b/10.1.0/gentoo/README.history @@ -1,3 +1,6 @@ +4 TODO + + 37_all_sparc_pie_TEXTREL.patch + 3 04 July 2020 + 33_all_avx512-scalar-PR95528.patch + 34_all_cet-cross-x86.patch