Do not fail EFI build with newer binutils
authorMichael Biebl <biebl@debian.org>
Wed, 22 Jun 2022 11:11:13 +0000 (13:11 +0200)
committerMichael Biebl <biebl@debian.org>
Wed, 6 Jul 2022 19:23:38 +0000 (20:23 +0100)
commitd4aa0bc3dd710e5a06fec99f639e964f7bb6f5dd
tree937271c5362a7e8d0120d331aa845bf618bc4420
parentf085b7bc2597d00967dc5ca20e42b31218571edd
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

Gbp-Pq: Topic debian
Gbp-Pq: Name Do-not-fail-EFI-build-with-newer-binutils.patch
src/boot/efi/meson.build