[ipxe-devel] [PATCH 1/1] [arm] add -mno-unaligned-access compiler flag
Heinrich Schuchardt
xypron.glpk at gmx.de
Wed Mar 28 20:19:50 UTC 2018
Without the flag a "data abort" occured when compiling with gcc 6.3 for
armhf and running on an Allwinner A20 SOC in function efi_devpath_end().
The flag is usable both with GCC and LLVM.
With some console commands enabled bin-arm32-efi/snp.efi grows from 148448
to 154464 bytes.
Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
src/arch/arm32/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/arch/arm32/Makefile b/src/arch/arm32/Makefile
index 3a7c0923..fc72af11 100644
--- a/src/arch/arm32/Makefile
+++ b/src/arch/arm32/Makefile
@@ -5,6 +5,7 @@ SRCDIRS += arch/arm32/libgcc
# ARM32-specific flags
#
+CFLAGS += -mno-unaligned-access
CFLAGS += -mthumb -mcpu=cortex-a15 -mabi=aapcs -mfloat-abi=soft
CFLAGS += -mword-relocations
ASFLAGS += -mthumb -mcpu=cortex-a15
--
2.11.0
More information about the ipxe-devel
mailing list