Acknowledgement sent
to John David Anglin <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian CMake Team <[email protected]>.
(Wed, 26 Feb 2025 16:39:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Brad King <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian CMake Team <[email protected]>.
(Wed, 26 Feb 2025 18:57:02 GMT) (full text, mbox, link).
Subject: Re: Bug#1098956: cmake: FTBFS on hppa - /usr/bin/ld: warning: exec
has a LOAD segment with RWX permissions
Date: Wed, 26 Feb 2025 13:54:24 -0500
On Wed, Feb 26, 2025 at 11:39 AM John David Anglin wrote:
> Binutils ld has a new warning...it causes the following tests to fail
> ...
> actual-stderr> /usr/bin/ld: warning: exec has a LOAD segment with RWX permissions
CMake's tests fail due to this unexpected incidental output from the toolchain.
I don't think the warning itself is a problem for binaries inside the
test suite.
I've opened an upstream CMake merge request to filter out that output:
* https://gitlab.kitware.com/cmake/cmake/-/merge_requests/10398
-Brad
Acknowledgement sent
to Dave Anglin <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian CMake Team <[email protected]>.
(Wed, 26 Feb 2025 21:27:01 GMT) (full text, mbox, link).
Acknowledgement sent
to Dave Anglin <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian CMake Team <[email protected]>.
(Sat, 01 Mar 2025 16:39:01 GMT) (full text, mbox, link).
Subject: Re: Bug#1098956: Info received (Bug#1098956: Acknowledgement (cmake:
FTBFS on hppa - /usr/bin/ld: warning: exec has a LOAD segment with RWX
permissions))
Date: Sat, 1 Mar 2025 11:35:16 -0500
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 [email protected]
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.