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 9BB8A138350 for ; Sat, 14 Mar 2020 10:47:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C8831E08CE; Sat, 14 Mar 2020 10:47:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 9E216E08CE for ; Sat, 14 Mar 2020 10:47:52 +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 1482A34EF15 for ; Sat, 14 Mar 2020 10:47:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A4DB2168 for ; Sat, 14 Mar 2020 10:47:48 +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: <1584182800.038fd4e08bbf78fabe2d8bb13aec85bd20a611b1.slyfox@gentoo> Subject: [gentoo-commits] proj/gcc-patches:master commit in: 9.3.0/gentoo/ X-VCS-Repository: proj/gcc-patches X-VCS-Files: 9.3.0/gentoo/04_all_default-ssp-fix.patch 9.3.0/gentoo/04_all_nossp-on-nostdlib.patch 9.3.0/gentoo/27_all_default_ssp-buffer-size.patch 9.3.0/gentoo/README.history X-VCS-Directories: 9.3.0/gentoo/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 038fd4e08bbf78fabe2d8bb13aec85bd20a611b1 X-VCS-Branch: master Date: Sat, 14 Mar 2020 10:47:48 +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: 929c1073-2a30-41be-9b78-d56fe30b73f0 X-Archives-Hash: 5300cd71d4110dcb842ea4cf87e4ed6d commit: 038fd4e08bbf78fabe2d8bb13aec85bd20a611b1 Author: Sergei Trofimovich gentoo org> AuthorDate: Sat Mar 14 10:46:40 2020 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sat Mar 14 10:46:40 2020 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=038fd4e0 9.3.0: split 04_all_default-ssp-fix.patch in two No functional change should happen. gcc-10 got rid of defaults defined in .c file. We'll need to adapt one patch slightly. Signed-off-by: Sergei Trofimovich gentoo.org> ...efault-ssp-fix.patch => 04_all_nossp-on-nostdlib.patch} | 13 +------------ 9.3.0/gentoo/27_all_default_ssp-buffer-size.patch | 14 ++++++++++++++ 9.3.0/gentoo/README.history | 5 +++++ 3 files changed, 20 insertions(+), 12 deletions(-) diff --git a/9.3.0/gentoo/04_all_default-ssp-fix.patch b/9.3.0/gentoo/04_all_nossp-on-nostdlib.patch similarity index 67% rename from 9.3.0/gentoo/04_all_default-ssp-fix.patch rename to 9.3.0/gentoo/04_all_nossp-on-nostdlib.patch index d2deac7..648d712 100644 --- a/9.3.0/gentoo/04_all_default-ssp-fix.patch +++ b/9.3.0/gentoo/04_all_nossp-on-nostdlib.patch @@ -1,6 +1,6 @@ Disable ssp on -nostdlib, -nodefaultlibs and -ffreestanding -Change the buffer size. +https://bugs.gentoo.org/484714 --- a/gcc/gcc.c 2017-07-04 09:15:57.740793000 +0200 +++ b/gcc/gcc.c 2018-03-02 13:58:44.387741114 +0100 @@ -857,6 +857,12 @@ proper position among the other output f @@ -25,14 +25,3 @@ Change the buffer size. %{coverage:-fprofile-arcs -ftest-coverage}\ %{fprofile-arcs|fprofile-generate*|coverage:\ %{!fprofile-update=singel:\ ---- a/gcc/params.def 2016-03-30 09:47:40.000000000 +0200 -+++ b/gcc/params.def 2016-09-19 12:56:58.443179039 +0200 -@@ -673,7 +673,7 @@ DEFPARAM (PARAM_INTEGER_SHARE_LIMIT, - DEFPARAM (PARAM_SSP_BUFFER_SIZE, - "ssp-buffer-size", - "The lower bound for a buffer to be considered for stack smashing protection.", -- 8, 1, 0) -+ 4, 1, 0) - - DEFPARAM (PARAM_MIN_SIZE_FOR_STACK_SHARING, - "min-size-for-stack-sharing", diff --git a/9.3.0/gentoo/27_all_default_ssp-buffer-size.patch b/9.3.0/gentoo/27_all_default_ssp-buffer-size.patch new file mode 100644 index 0000000..dddd06b --- /dev/null +++ b/9.3.0/gentoo/27_all_default_ssp-buffer-size.patch @@ -0,0 +1,14 @@ +Change the minimal SSP buffer size. + +https://bugs.gentoo.org/484714 +--- a/gcc/params.def 2016-03-30 09:47:40.000000000 +0200 ++++ b/gcc/params.def 2016-09-19 12:56:58.443179039 +0200 +@@ -673,7 +673,7 @@ DEFPARAM (PARAM_INTEGER_SHARE_LIMIT, + DEFPARAM (PARAM_SSP_BUFFER_SIZE, + "ssp-buffer-size", + "The lower bound for a buffer to be considered for stack smashing protection.", +- 8, 1, 0) ++ 4, 1, 0) + + DEFPARAM (PARAM_MIN_SIZE_FOR_STACK_SHARING, + "min-size-for-stack-sharing", diff --git a/9.3.0/gentoo/README.history b/9.3.0/gentoo/README.history index 6f2d71a..e5865d4 100644 --- a/9.3.0/gentoo/README.history +++ b/9.3.0/gentoo/README.history @@ -1,3 +1,8 @@ +2 TODO + - 04_all_default-ssp-fix.patch + + 04_all_nossp-on-nostdlib.patch + + 27_all_default_ssp-buffer-size.patch + 1 12 Mar 2019 + 01_all_default-fortify-source.patch + 02_all_default-warn-format-security.patch