diff options
author | Alan Modra <amodra@gmail.com> | 2022-06-27 20:39:09 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-06-28 09:52:36 +0930 |
commit | 8bddb52eb97bbfd70f95447810f69c803b01e7b7 (patch) | |
tree | cb4e54f6f508660eb8f1a8abd8f9663b7c599175 /ld | |
parent | f0cb8284cfa32f380b34fb281ed133282fb55f4e (diff) | |
download | gdb-8bddb52eb97bbfd70f95447810f69c803b01e7b7.zip gdb-8bddb52eb97bbfd70f95447810f69c803b01e7b7.tar.gz gdb-8bddb52eb97bbfd70f95447810f69c803b01e7b7.tar.bz2 |
Re: Disable execstack and rwx segments warnings for MIPS targets.
PR 29263
* configure.ac: Fix typo.
* testsuite/ld-elf/elf.exp: Add mips to targets that need
--warn-execstack to pass first pr29072 test.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/configure.ac | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/elf.exp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ld/configure.ac b/ld/configure.ac index a54a280..4331d6b 100644 --- a/ld/configure.ac +++ b/ld/configure.ac @@ -564,7 +564,7 @@ AC_DEFINE_UNQUOTED(DEFAULT_LD_WARN_EXECSTACK, [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, diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index 473349d..10c635e 100644 --- a/ld/testsuite/ld-elf/elf.exp +++ b/ld/testsuite/ld-elf/elf.exp @@ -238,8 +238,8 @@ if { [istarget *-*-*linux*] # 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 "" |