PR 29263
* configure.ac: Fix typo.
* testsuite/ld-elf/elf.exp: Add mips to targets that need
--warn-execstack to pass first pr29072 test.
[Define to 1 if you want to enable --warn-execstack in ELF linker by default.])
if test "${ac_default_ld_warn_rwx_segments}" = unset; then
- ac_default_ld_warn_rwx_segments=1 ;;
+ ac_default_ld_warn_rwx_segments=1
fi
AC_DEFINE_UNQUOTED(DEFAULT_LD_WARN_RWX_SEGMENTS,
$ac_default_ld_warn_rwx_segments,
# The HPPA target disables the warnings by default since it needs an
# executable stack to support older kernels and an RWX segment to
- # support its PLT.
- if { [istarget "hppa*-*-*"] } {
+ # support its PLT. MIPS also turns off exec stack warnings.
+ if { [istarget "hppa*-*-*"] || [istarget mips*-*-*] } {
set extra_link_opts "--warn-execstack --warn-rwx-segments"
} else {
set extra_link_opts ""