Do not fail EFI build with newer binutils
authorMichael Biebl <biebl@debian.org>
Wed, 22 Jun 2022 11:11:13 +0000 (13:11 +0200)
committerJan Janssen <medhefgo@web.de>
Wed, 13 Jul 2022 16:48:07 +0000 (18:48 +0200)
commitb0e5bf0451a6bc94e6e7b2a1de668b75c63f38c8
tree6a2c2aa5e87086ec37222be83f4d6717abc39bfc
parent9e6df034128936895df2d6348eefce61317ebcc2
Do not fail EFI build with newer binutils

Newer binutils versions currently trigger the following warnings due to
a bug in gnu-efi

on arm64:
/usr/bin/ld.bfd: warning: src/boot/efi/systemd-bootaa64.elf has a LOAD segment with RWX permissions

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

This results in a build failure due to --fatal-warnings.
Work around this issue by suppressing those warnings until gnu-efi has
been fixed.

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1013341
src/boot/efi/meson.build