]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Properly strip EFI binaries
authorJan Janssen <medhefgo@web.de>
Fri, 20 Jan 2023 13:11:54 +0000 (14:11 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 20 Jan 2023 16:28:35 +0000 (17:28 +0100)
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

index deb328eb4e2c18aa726392272da97ac9088f1ca5..eaa50e0e69798c4f01dc0097d22b15a6e1b371f3 100644 (file)
@@ -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@'],