1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

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?
This commit is contained in:
Jan Janssen 2023-01-20 14:11:54 +01:00 committed by Lennart Poettering
parent fba1033151
commit 4c0a83a434

View File

@ -467,6 +467,7 @@ foreach tuple : [['systemd-boot@0@.@1@', systemd_boot_objects, false, 'systemd-b
'-j', '.sdata', '-j', '.sdata',
'-j', '.sdmagic', '-j', '.sdmagic',
'-j', '.text', '-j', '.text',
'--strip-all',
'--section-alignment=512', '--section-alignment=512',
efi_format, efi_format,
'@INPUT@', '@OUTPUT@'], '@INPUT@', '@OUTPUT@'],