ld: cris*-elf: Default to --no-warn-rwx-segment
authorHans-Peter Nilsson <hp@axis.com>
Thu, 26 May 2022 22:31:52 +0000 (00:31 +0200)
committerHans-Peter Nilsson <hp@bitrange.com>
Thu, 26 May 2022 23:03:10 +0000 (01:03 +0200)
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

index 89f4a99c66ec7916bf1244560cf38f66bad51412..66b81550458af2c95153774da278c62341511cfd 100644 (file)
@@ -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
                        ;;