Blame SOURCES/0009-Add-malign-double-to-IA32-compiler-flags.patch

9de34f
From 0cf43ac6d78c6f47f8b91210639ac1aa63665f0b Mon Sep 17 00:00:00 2001
9de34f
From: Nicholas Bishop <nicholasbishop@google.com>
9de34f
Date: Thu, 6 Oct 2022 16:08:56 -0400
9de34f
Subject: [PATCH 09/13] Add -malign-double to IA32 compiler flags
9de34f
9de34f
This changes the alignment of UINT64 data to 8 bytes on IA32, which
9de34f
matches EDK2's understanding of alignment. In particular this change
9de34f
affects the offset where shim writes `EFI_LOADED_IMAGE.ImageSize`.
9de34f
9de34f
Fixes https://github.com/rhboot/shim/issues/515
9de34f
9de34f
Signed-off-by: Nicholas Bishop <nicholasbishop@google.com>
9de34f
---
9de34f
 Make.defaults | 2 +-
9de34f
 1 file changed, 1 insertion(+), 1 deletion(-)
9de34f
9de34f
diff --git a/Make.defaults b/Make.defaults
9de34f
index dfed9c4a3c7..c46164a33ea 100644
9de34f
--- a/Make.defaults
9de34f
+++ b/Make.defaults
9de34f
@@ -71,7 +71,7 @@ ifeq ($(ARCH),x86_64)
9de34f
 endif
9de34f
 ifeq ($(ARCH),ia32)
9de34f
 	ARCH_CFLAGS		?= -mno-mmx -mno-sse -mno-red-zone -nostdinc \
9de34f
-				   $(CLANG_BUGS) -m32 \
9de34f
+				   $(CLANG_BUGS) -m32 -malign-double \
9de34f
 				   -DMDE_CPU_IA32 -DPAGE_SIZE=4096
9de34f
 	ARCH_GNUEFI		?= ia32
9de34f
 	ARCH_SUFFIX		?= ia32
9de34f
-- 
9de34f
2.37.1
9de34f