Navigation Menu

Skip to content

Commit

Permalink
[build] Use -malign-double to build 32-bit UEFI binaries
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mcb30 committed Sep 24, 2014
1 parent 6a22170 commit a3d8607
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/arch/i386/Makefile.efi
Expand Up @@ -4,6 +4,10 @@
#
ELF2EFI = $(ELF2EFI32)

# Use EFI ABI
#
CFLAGS += -malign-double

# Include generic EFI Makefile
#
MAKEDEPS += arch/x86/Makefile.efi
Expand Down

0 comments on commit a3d8607

Please sign in to comment.