Skip to content

Commit

Permalink
Increase EFI file alignment
Browse files Browse the repository at this point in the history
Although file alignment for EFI apps is not clear, most of the UEFI
accept defaulf file alignment (0x200). Nevertheless some of the UEFI
bootloaders require file alignment to be 0x1000 (e.g. Lenovo Miix 630,
Lenovo Yoga C630, etc). Increase file alignment to the desired value.

Fixes rhboot#670

Signed-off-by: Dmitry Baryshkov <[email protected]>
  • Loading branch information
lumag committed Jul 28, 2024
1 parent 0287c6b commit 46f3e47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ endif
-j .dynamic -j .rodata -j .rel* \
-j .rela* -j .dyn -j .reloc -j .eh_frame \
-j .vendor_cert -j .sbat -j .sbatlevel \
--file-alignment 0x1000 \
$(FORMAT) $< $@
./post-process-pe -vv $(POST_PROCESS_PE_FLAGS) $@

Expand All @@ -288,6 +289,7 @@ endif
-j .debug_info -j .debug_abbrev -j .debug_aranges \
-j .debug_line -j .debug_str -j .debug_ranges \
-j .note.gnu.build-id \
--file-alignment 0x1000 \
$< $@

ifneq ($(origin ENABLE_SBSIGN),undefined)
Expand Down

0 comments on commit 46f3e47

Please sign in to comment.