From: Jan Janssen Date: Fri, 20 Jan 2023 13:11:54 +0000 (+0100) Subject: boot: Properly strip EFI binaries X-Git-Tag: v253-rc1~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4c0a83a434aa707d4fe43f4c5eedcd2269a14ef2;p=thirdparty%2Fsystemd.git boot: Properly strip EFI binaries Removing debugging related sections is apparently not enough to truely strip a (PE) binary. Better late than never. It gets rid of this pesky warning from sbsign: warning: data remaining[174080 vs 193173]: gaps between PE/COFF sections? --- diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build index deb328eb4e2..eaa50e0e697 100644 --- a/src/boot/efi/meson.build +++ b/src/boot/efi/meson.build @@ -467,6 +467,7 @@ foreach tuple : [['systemd-boot@0@.@1@', systemd_boot_objects, false, 'systemd-b '-j', '.sdata', '-j', '.sdmagic', '-j', '.text', + '--strip-all', '--section-alignment=512', efi_format, '@INPUT@', '@OUTPUT@'],