]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
hosttools: force a --no-rosegment option if host ld supports it
authorAlexander Kanavin <alex@linutronix.de>
Fri, 6 Feb 2026 13:57:39 +0000 (14:57 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 Feb 2026 10:24:10 +0000 (10:24 +0000)
commitbd89d1c0185c473ef77c8ae1dabf9f5ecb5abe76
treeb9b600c67f615aefbcfccdada0cfcc8ea1096d6d
parentadfb5c26f72aee31b610ae0409ea9c082317fdbd
hosttools: force a --no-rosegment option if host ld supports it

Please see https://bugzilla.yoctoproject.org/show_bug.cgi?id=16087
for the tricky, unpleasant details.

The summary of the issue:

>From Fedora 42 onwards, the --rosegment argument is passed to the
linker by default when building native binaries. This triggers
re-arrangement of sections by patchelf, resulting in binaries which
are loaded incorrectly by older kernel versions. These "contaminated"
native binaries end up in sstate and cause build failures when they
are used on older distros such as AlmaLinux 8 & 9 or Rocky Linux 8 &
9.

[YOCTO #16087]

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/base.bbclass