From 4c0a83a434aa707d4fe43f4c5eedcd2269a14ef2 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Fri, 20 Jan 2023 14:11:54 +0100 Subject: [PATCH] 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? --- src/boot/efi/meson.build | 1 + 1 file changed, 1 insertion(+) 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@'], -- 2.47.3