fe8745ee78
Resolves: RHEL-26133,RHEL-26643
29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
From 4d3b9819a24f233f66f46a8d153f56e7d73cc809 Mon Sep 17 00:00:00 2001
|
|
From: Michal Sekletar <msekleta@redhat.com>
|
|
Date: Thu, 29 Feb 2024 17:51:33 +0100
|
|
Subject: [PATCH] efi: alignment of the PE file has to be at least 512 bytes
|
|
|
|
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]
|
|
---
|
|
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 b84ceb8c9f..c4eb471451 100644
|
|
--- a/src/boot/efi/meson.build
|
|
+++ b/src/boot/efi/meson.build
|
|
@@ -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@'],
|