stand: compile ia32 EFI loader with -malign-double

The UEFI spec says:
> Structures are aligned on boundaries equal to the largest internal
> datum of the structure and internal data are implicitly padded to
> achieve natural alignment.

By default, structs containing members of type "long long" have 4 byte
alignment on i386. This caused some EFI structures to be subtly wrong.

Fix this by compiling the ia32 EFI loader with -malign-double, which
bumps the alignment up to 8 if such members are present.

MFC after:	3 days
This commit is contained in:
Ahmad Khalifa
2026-02-15 14:23:26 +02:00
parent 90d79dd549
commit a60e7e6ff0
+2
View File
@@ -7,3 +7,5 @@ SRCS+= amd64_tramp.S \
SRCS+= nullconsole.c \
comconsole.c \
spinconsole.c
CFLAGS+= -malign-double