mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-30 12:44:10 +08:00
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.
This commit is contained in:
parent
f0cb8284cf
commit
8bddb52eb9
@ -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,
|
||||
|
@ -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 ""
|
||||
|
Loading…
Reference in New Issue
Block a user