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 5057C138359 for ; Sat, 25 Jul 2020 12:21:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6906CE08AD; Sat, 25 Jul 2020 12:21:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 EDB08E08AD for ; Sat, 25 Jul 2020 12:21:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 1B90C34EE50 for ; Sat, 25 Jul 2020 12:21:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 44F9B295 for ; Sat, 25 Jul 2020 12:20:57 +0000 (UTC) From: "Andreas K. Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas K. Hüttel" Message-ID: <1595679624.47b8db23ff55dd29992198dfbadda53984a4ab2d.dilfridge@gentoo> Subject: [gentoo-commits] proj/toolchain/binutils-patches:master commit in: 9999/ X-VCS-Repository: proj/toolchain/binutils-patches X-VCS-Files: 9999/0001-Gentoo-ld-always-warn-about-textrels-in-files.patch 9999/0002-Gentoo-Add-an-option-no-warn-shared-textrel-self-exp.patch X-VCS-Directories: 9999/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas K. Hüttel X-VCS-Revision: 47b8db23ff55dd29992198dfbadda53984a4ab2d X-VCS-Branch: master Date: Sat, 25 Jul 2020 12:20:57 +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: 3edc0cc4-ed50-4e88-bbcb-b343c1c63ef8 X-Archives-Hash: f27eb9b2fe1fcc697305354806b94927 commit: 47b8db23ff55dd29992198dfbadda53984a4ab2d Author: Andreas K. Hüttel gentoo org> AuthorDate: Sat Jul 25 12:20:24 2020 +0000 Commit: Andreas K. Hüttel gentoo org> CommitDate: Sat Jul 25 12:20:24 2020 +0000 URL: https://gitweb.gentoo.org/proj/toolchain/binutils-patches.git/commit/?id=47b8db23 Textrel warnings have been enabled upstream, drop patches Signed-off-by: Andreas K. Hüttel gentoo.org> ...oo-ld-always-warn-about-textrels-in-files.patch | 30 ---------- ...an-option-no-warn-shared-textrel-self-exp.patch | 66 ---------------------- 2 files changed, 96 deletions(-) diff --git a/9999/0001-Gentoo-ld-always-warn-about-textrels-in-files.patch b/9999/0001-Gentoo-ld-always-warn-about-textrels-in-files.patch deleted file mode 100644 index d60b0a1..0000000 --- a/9999/0001-Gentoo-ld-always-warn-about-textrels-in-files.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 5e2144e41600a83f6127eb44d739ed170d78ac7f Mon Sep 17 00:00:00 2001 -From: Mike Frysinger -Date: Mon, 16 May 2005 22:10:19 -0400 -Subject: [PATCH 1/9] Gentoo: ld: always warn about textrels in files - -textrels are bad for forcing copy-on-write (this affects everyone), and for -security/runtime code generation, this affects security ppl. But in either -case, it doesn't matter who needs textrels, it's the very fact that they're -needed at all. - -(cherry picked from commit cd6411ad57aab78686f67cbbc1ed70ee810ad335) ---- - ld/ldmain.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/ld/ldmain.c b/ld/ldmain.c -index 04a3f7a511..c3f473f661 100644 ---- a/ld/ldmain.c -+++ b/ld/ldmain.c -@@ -299,6 +299,7 @@ main (int argc, char **argv) - link_info.dynamic_undefined_weak = -1; - link_info.pei386_auto_import = -1; - link_info.spare_dynamic_tags = 5; -+ link_info.warn_shared_textrel = TRUE; - link_info.path_separator = ':'; - #ifdef DEFAULT_FLAG_COMPRESS_DEBUG - link_info.compress_debug = COMPRESS_DEBUG_GABI_ZLIB; --- -2.26.2 - diff --git a/9999/0002-Gentoo-Add-an-option-no-warn-shared-textrel-self-exp.patch b/9999/0002-Gentoo-Add-an-option-no-warn-shared-textrel-self-exp.patch deleted file mode 100644 index 5457b83..0000000 --- a/9999/0002-Gentoo-Add-an-option-no-warn-shared-textrel-self-exp.patch +++ /dev/null @@ -1,66 +0,0 @@ -From 19ecd671bddd33f3afff169f26c55101c90c4afc Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= -Date: Sun, 3 Jun 2018 21:12:16 +0200 -Subject: [PATCH 2/9] Gentoo: Add an option --no-warn-shared-textrel - (self-explanatory) - ---- - ld/ld.texi | 4 ++++ - ld/ldlex.h | 1 + - ld/lexsup.c | 6 ++++++ - 3 files changed, 11 insertions(+) - -diff --git a/ld/ld.texi b/ld/ld.texi -index 4dc78e65fa..621d05dc05 100644 ---- a/ld/ld.texi -+++ b/ld/ld.texi -@@ -2408,6 +2408,10 @@ the section (@pxref{SECTIONS}). - @item --warn-shared-textrel - Warn if the linker adds a DT_TEXTREL to a shared object. - -+@kindex --no-warn-shared-textrel -+@item --no-warn-shared-textrel -+Do not warn if the linker adds a DT_TEXTREL to a shared object. -+ - @kindex --warn-alternate-em - @item --warn-alternate-em - Warn if an object has alternate ELF machine code. -diff --git a/ld/ldlex.h b/ld/ldlex.h -index 22b928d2d9..aeaea4dfee 100644 ---- a/ld/ldlex.h -+++ b/ld/ldlex.h -@@ -131,6 +131,7 @@ enum option_values - OPTION_WARN_UNRESOLVED_SYMBOLS, - OPTION_ERROR_UNRESOLVED_SYMBOLS, - OPTION_WARN_SHARED_TEXTREL, -+ OPTION_NO_WARN_SHARED_TEXTREL, - OPTION_WARN_ALTERNATE_EM, - OPTION_REDUCE_MEMORY_OVERHEADS, - #ifdef ENABLE_PLUGINS -diff --git a/ld/lexsup.c b/ld/lexsup.c -index c02041d5f1..c5edc25793 100644 ---- a/ld/lexsup.c -+++ b/ld/lexsup.c -@@ -519,6 +519,9 @@ static const struct ld_option ld_options[] = - { {"warn-shared-textrel", no_argument, NULL, OPTION_WARN_SHARED_TEXTREL}, - '\0', NULL, N_("Warn if shared object has DT_TEXTREL"), - TWO_DASHES }, -+ { {"no-warn-shared-textrel", no_argument, NULL, OPTION_NO_WARN_SHARED_TEXTREL}, -+ '\0', NULL, N_("Do not warn if shared object has DT_TEXTREL"), -+ TWO_DASHES }, - { {"warn-alternate-em", no_argument, NULL, OPTION_WARN_ALTERNATE_EM}, - '\0', NULL, N_("Warn if an object has alternate ELF machine code"), - TWO_DASHES }, -@@ -1449,6 +1452,9 @@ parse_args (unsigned argc, char **argv) - case OPTION_WARN_SHARED_TEXTREL: - link_info.warn_shared_textrel = TRUE; - break; -+ case OPTION_NO_WARN_SHARED_TEXTREL: -+ link_info.warn_shared_textrel = FALSE; -+ break; - case OPTION_WARN_ALTERNATE_EM: - link_info.warn_alternate_em = TRUE; - break; --- -2.26.2 -