[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1013341: /usr/bin/ld.bfd: warning: /usr/lib/crt0-efi-x86_64.o: missing .note.GNU-stack section implies executable stack




Am 22.06.22 um 11:49 schrieb Julien Cristau:
On Wed, Jun 22, 2022 at 10:50:48AM +0200, Michael Biebl wrote:

Marking as RC, as it causes a FTBFS

Not using -Wl,--fatal-warnings might be a workaround for systemd until
gnu-efi fixes this?

Yeah, I'll probably add a workaround like


diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build
index 52e2a71a7c..18311ede25 100644
--- a/src/boot/efi/meson.build
+++ b/src/boot/efi/meson.build
@@ -251,6 +251,8 @@ efi_ldflags = [
         '-L', efi_libdir,
         '-nostdlib',
         '-T', efi_lds,
+        '-Wl,--no-warn-execstack',
+        '-Wl,--no-warn-rwx-segments',
         '-Wl,--build-id=sha1',
         '-Wl,--fatal-warnings',
         '-Wl,--no-undefined',

to systemd for the time being.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: