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 #670

Signed-off-by: Dmitry Baryshkov <[email protected]>
  • Loading branch information
lumag authored and vathpela committed Jan 15, 2025
1 parent 2a1cbe6 commit 196cbb9
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 196cbb9

Please sign in to comment.