瀏覽代碼

[build] Use -malign-double to build 32-bit UEFI binaries

The EDK2 codebase uses -malign-double for 32-bit builds, which causes
64-bit integers to be naturally aligned.  This affects the layout of
some structures (including EFI_BLOCK_IO_MEDIA).

This mirrors wimboot commit 7b8f39d ("[build] Fix building of 32-bit
UEFI version").

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 年之前
父節點
當前提交
a3d86074cc
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/arch/i386/Makefile.efi

+ 4
- 0
src/arch/i386/Makefile.efi 查看文件

4
 #
4
 #
5
 ELF2EFI		= $(ELF2EFI32)
5
 ELF2EFI		= $(ELF2EFI32)
6
 
6
 
7
+# Use EFI ABI
8
+#
9
+CFLAGS		+= -malign-double
10
+
7
 # Include generic EFI Makefile
11
 # Include generic EFI Makefile
8
 #
12
 #
9
 MAKEDEPS	+= arch/x86/Makefile.efi
13
 MAKEDEPS	+= arch/x86/Makefile.efi

Loading…
取消
儲存