rhboot / shim

UEFI shim loader
Other
848 stars 290 forks source link

Add -malign-double to IA32 compiler flags #516

Closed nicholasbishop closed 1 year ago

nicholasbishop commented 1 year ago

This changes the alignment of UINT64 data to 8 bytes on IA32, which matches EDK2's understanding of alignment. In particular this change affects the offset where shim writes EFI_LOADED_IMAGE.ImageSize.

Fixes https://github.com/rhboot/shim/issues/515

Signed-off-by: Nicholas Bishop nicholasbishop@google.com