diff options
author | Michael Brown <mcb30@ipxe.org> | 2014-09-24 16:07:04 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2014-09-24 16:08:09 +0100 |
commit | a3d86074ccf154f4439b0c5b7e8c12b1b29fd497 (patch) | |
tree | 86b1c65fb9a5829459054a9b87bdb32473f68899 /src | |
parent | 6a221700850b648183279f0a6e565f78fc72d57c (diff) | |
download | ipxe-a3d86074ccf154f4439b0c5b7e8c12b1b29fd497.zip ipxe-a3d86074ccf154f4439b0c5b7e8c12b1b29fd497.tar.gz ipxe-a3d86074ccf154f4439b0c5b7e8c12b1b29fd497.tar.bz2 |
[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>
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/i386/Makefile.efi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/i386/Makefile.efi b/src/arch/i386/Makefile.efi index 8d651b0..aa809eb 100644 --- a/src/arch/i386/Makefile.efi +++ b/src/arch/i386/Makefile.efi @@ -4,6 +4,10 @@ # ELF2EFI = $(ELF2EFI32) +# Use EFI ABI +# +CFLAGS += -malign-double + # Include generic EFI Makefile # MAKEDEPS += arch/x86/Makefile.efi |