From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by sourceware.org (Postfix) with ESMTPS id 0DCB3382F9B4 for ; Thu, 26 May 2022 23:25:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0DCB3382F9B4 From: Hans-Peter Nilsson To: Subject: [COMMITTED] ld: cris*-elf: Default to --no-warn-rwx-segment MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT Message-ID: <20220526232557.DE45820439@pchp3.se.axis.com> Date: Fri, 27 May 2022 01:25:57 +0200 X-Spam-Status: No, score=-10.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2022 23:26:00 -0000 Thankfully, all framework bits were already in place for controlling the default setting for --[no-]warn-rwx-segment per-target. ------------ 8< ------------ ld: configure.tgt (cris-*-*, crisv32-*-* sans *-aout and *-linux): Unless specified through the --enable-* -option, default to --no-warn-rwx-segment. Change-Id: I846bcd3e6762da807b17215a9fe337461ea0d710 --- ld/configure.tgt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ld/configure.tgt b/ld/configure.tgt index 89f4a99c66ec..66b81550458a 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -235,6 +235,11 @@ cris-*-linux-* | crisv32-*-linux-*) cris-*-* | crisv32-*-*) targ_emul=criself targ_extra_emuls="crisaout crislinux" targ_extra_libpath=$targ_extra_emuls + # The default linker script yields just one segment + # as intended, and then a warning is not helpful. + if test "${ac_default_ld_warn_rwx_segments}" = unset; then + ac_default_ld_warn_rwx_segments=0 + fi ;; crx-*-elf*) targ_emul=elf32crx ;; -- 2.30.2 brgds, H-P