View | Details | Raw Unified | Return to bug 29263
Collapse All | Expand All

(-)a/ld/configure.ac (-2 / +10 lines)
Lines 206-212 esac]) Link Here
206
206
207
# By default warn when an executable stack is created due to object files
207
# By default warn when an executable stack is created due to object files
208
# requesting such, not when the user specifies -z execstack.
208
# requesting such, not when the user specifies -z execstack.
209
ac_default_ld_warn_execstack=2
209
[case "${target}" in
210
  # HPPA port needs to support older kernels that use executable stacks for signals and syscalls.
211
  hppa*-*-*) ac_default_ld_warn_execstack=0 ;;
212
  *) ac_default_ld_warn_execstack=2 ;;
213
  esac]
210
AC_ARG_ENABLE(warn-execstack,
214
AC_ARG_ENABLE(warn-execstack,
211
	      AS_HELP_STRING([--enable-warn-execstack],
215
	      AS_HELP_STRING([--enable-warn-execstack],
212
	      [enable warnings when creating an executable stack]),
216
	      [enable warnings when creating an executable stack]),
Lines 564-570 AC_DEFINE_UNQUOTED(DEFAULT_LD_WARN_EXECSTACK, Link Here
564
  [Define to 1 if you want to enable --warn-execstack in ELF linker by default.])
568
  [Define to 1 if you want to enable --warn-execstack in ELF linker by default.])
565
569
566
if test "${ac_default_ld_warn_rwx_segments}" = unset; then
570
if test "${ac_default_ld_warn_rwx_segments}" = unset; then
567
  ac_default_ld_warn_rwx_segments=1
571
  [case "${target}" in
572
  # HPPA port needs to support older kernels that use executable stacks for signals and syscalls.
573
  hppa*-*-*) ac_default_ld_warn_rwx_segments=0 ;;
574
  *) ac_default_ld_warn_rwx_segments=1 ;;
575
  esac]
568
fi
576
fi
569
AC_DEFINE_UNQUOTED(DEFAULT_LD_WARN_RWX_SEGMENTS,
577
AC_DEFINE_UNQUOTED(DEFAULT_LD_WARN_RWX_SEGMENTS,
570
  $ac_default_ld_warn_rwx_segments,
578
  $ac_default_ld_warn_rwx_segments,

Return to bug 29263