Skip to content

Commit

Permalink
efi: alignment of the PE file has to be at least 512 bytes
Browse files Browse the repository at this point in the history
https://learn.microsoft.com/en-us/windows/win32/debug/pe-format?redirectedfrom=MSDN#optional-header-windows-specific-fields-image-only

Resolves: RHEL-26133

RHEL-only

[msekleta: this is RHEL-only because upstream no longer uses objcopy to create PE files]
  • Loading branch information
msekletar authored and github-actions[bot] committed Mar 1, 2024
1 parent f7b027e commit 4d3b981
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/boot/efi/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ foreach tuple : [['systemd-boot@0@.@1@', systemd_boot_objects, false, 'systemd-b
'-j', '.sdata',
'-j', '.sdmagic',
'-j', '.text',
'--file-alignment=512',
'--section-alignment=512',
efi_format,
'@INPUT@', '@OUTPUT@'],
Expand Down

0 comments on commit 4d3b981

Please sign in to comment.