public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Hans-Peter Nilsson <hp@axis.com>
To: <binutils@sourceware.org>
Subject: [COMMITTED] ld: cris*-elf: Default to --no-warn-rwx-segment
Date: Fri, 27 May 2022 01:25:57 +0200	[thread overview]
Message-ID: <20220526232557.DE45820439@pchp3.se.axis.com> (raw)

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

                 reply	other threads:[~2022-05-26 23:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220526232557.DE45820439@pchp3.se.axis.com \
    --to=hp@axis.com \
    --cc=binutils@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).