[Pkg-cmake-team] Bug#1098956: Info received (Bug#1098956: Acknowledgement (cmake: FTBFS on hppa - /usr/bin/ld: warning: exec has a LOAD segment with RWX permissions))
Dave Anglin
jda.parisc at gmail.com
Sat Mar 1 16:35:16 GMT 2025
It is not clear why the warning was forced on all architectures. We have the following
code in ld/configure.tgt:
# By default the linker will generate warnings if it is creating an
# executable stack or a segment with all three of read, write and
# execute permissions. These settings are not appropriate for all
# targets however, so we can change them here:
if test "${ac_default_ld_warn_rwx_segments}" = unset; then
case "${targ}" in
# The CRIS and V850 default linker scripts yields just one segment
# as intended, so a rwx segment warning is not helpful.
# The HPPA's and SPARC's PLT sections use a constructed trampoline
# hence it needs to have a RWX segment.
# Many MIPS targets use executable segments.
cris-*-* | crisv32-*-* | \
hppa*-*-* | \
mips*-*-* | \
microblaze*-*-* | \
sparc*-*-* | \
v850*-*-*)
ac_default_ld_warn_rwx_segments=0
;;
*)
;;
esac
fi
Dave
--
John David Anglin jda.parisc at gmail.com
More information about the Pkg-cmake-team
mailing list