You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/usr/bin/ld.bfd: warning: src/boot/efi/systemd-bootaa64.elf has a LOAD segment with RWX permissions
collect2: error: ld returned 1 exit status
Fix for binutils 2.39 was already provided in #23996 however the issue with the fix is that it assumes default cc linker is the same as linker used for efi stub. That may not be true though -- for the most parts of systemd I'm using mold linker, while efi stub forces bfd in efi_ldflags:
systemd version the issue has been seen with
251.4
Used distribution
PLD 3.0
Linux kernel version used
5.19.0
CPU architectures issue was seen on
aarch64
Component
other
Expected behaviour you didn't see
systemd
builds successfully.Unexpected behaviour you saw
Build fails with:
Fix for
binutils 2.39
was already provided in #23996 however the issue with the fix is that it assumes defaultcc
linker is the same as linker used for efi stub. That may not be true though -- for the most parts ofsystemd
I'm usingmold
linker, while efi stub forcesbfd
inefi_ldflags
:systemd/src/boot/efi/meson.build
Lines 255 to 256 in 7b45d6b
Test for
--no-warn-rwx-segments
does not takeefi_ldflags
into account though:systemd/src/boot/efi/meson.build
Lines 269 to 273 in 7b45d6b
and tests
mold
instead. In the endbfd
fails linking becausemold
does not support--no-warn-rwx-segments
.Steps to reproduce the problem
Build
systemd
withLDFLAGS="-fuse-ld=mold"
on a system that supports efi stub and hasbinutils 2.39
installedAdditional program output to the terminal or log subsystem illustrating the issue
No response
The text was updated successfully, but these errors were encountered: