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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EAD57158090 for ; Thu, 26 May 2022 05:48:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3617FE08A2; Thu, 26 May 2022 05:48:18 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 178D2E08A2 for ; Thu, 26 May 2022 05:48:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 130DA34158D for ; Thu, 26 May 2022 05:48:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5AC9B4C8 for ; Thu, 26 May 2022 05:48:15 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1653544085.f26b9f82a358ce22c9d77710ce785f94defa20dd.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/binutils/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/binutils/binutils-9999.ebuild X-VCS-Directories: sys-devel/binutils/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: f26b9f82a358ce22c9d77710ce785f94defa20dd X-VCS-Branch: master Date: Thu, 26 May 2022 05:48:15 +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: 8dbf9c03-6860-490e-bd1e-98f0f859a1de X-Archives-Hash: 7bbbb583e7435d8509e1ff4e9ca89b93 commit: f26b9f82a358ce22c9d77710ce785f94defa20dd Author: Sam James gentoo org> AuthorDate: Thu May 26 05:35:25 2022 +0000 Commit: Sam James gentoo org> CommitDate: Thu May 26 05:48:05 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f26b9f82 sys-devel/binutils: add --enable-warn-{execstack,rwx-segments} to 9999 only New in 2.39. This lays the groundworks for --enable-default-execstack at some point, maybe even in 2.39 for us, but let's see how this goes first. Signed-off-by: Sam James gentoo.org> sys-devel/binutils/binutils-9999.ebuild | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sys-devel/binutils/binutils-9999.ebuild b/sys-devel/binutils/binutils-9999.ebuild index b317d8ffcd0f..8a2d54bd59b9 100644 --- a/sys-devel/binutils/binutils-9999.ebuild +++ b/sys-devel/binutils/binutils-9999.ebuild @@ -242,8 +242,22 @@ src_configure() { --enable-install-libiberty # Available from 2.35 on --enable-textrel-check=warning + + # Available from 2.39 on + --enable-warn-execstack + --enable-warn-rwx-segments + # TODO: Available from 2.39+ on but let's try the warning on for a bit + # first... (--enable-warn-execstack) + # Could put it under USE=hardened? + #--enable-default-execstack + + # Things to think about + #--enable-deterministic-archives + # Works better than vapier's patch, bug #808787 --enable-new-dtags + + --disable-jansson --disable-werror --with-bugurl="$(toolchain-binutils_bugurl)" --with-pkgversion="$(toolchain-binutils_pkgversion)"