summaryrefslogtreecommitdiff
path: root/ld/configure.tgt
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2022-05-27 00:31:52 +0200
committerHans-Peter Nilsson <hp@bitrange.com>2022-05-27 01:03:10 +0200
commit5d02a15c69c69309714065dfac3ffe7d8c7773c0 (patch)
treecd161c1a39e1f01e28a200eb7859c80e830ea028 /ld/configure.tgt
parent81cd0a49c9e5f28c0fec391e449ea3272077c432 (diff)
downloadbinutils-gdb-5d02a15c69c69309714065dfac3ffe7d8c7773c0.tar.gz
ld: cris*-elf: Default to --no-warn-rwx-segment
ld: configure.tgt (cris-*-*, crisv32-*-* sans *-aout and *-linux): Unless specified through the --enable-* -option, default to --no-warn-rwx-segment. Change-Id: I846bcd3e6762da807b17215a9fe337461ea0d710
Diffstat (limited to 'ld/configure.tgt')
-rw-r--r--ld/configure.tgt5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/configure.tgt b/ld/configure.tgt
index 89f4a99c66e..66b81550458 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
;;