]> git.ipfire.org Git - thirdparty/grub.git/commit
efi: Compile kernel.img with -fshort-wchar on all EFI targets
authorChris Coulson <chris.coulson@canonical.com>
Tue, 11 Oct 2022 12:26:33 +0000 (13:26 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 27 Oct 2022 13:17:04 +0000 (15:17 +0200)
commit62149e090f5212af8205d28eabcbf5a59d7f0b2d
treeef1f34def13700b1d0283d541ffcb94c5031a1ed
parent1df05ac832e392c2b08286f11b3e01ad9ef1d3d2
efi: Compile kernel.img with -fshort-wchar on all EFI targets

The stack check logs a console message on failure, and the EFI API expects
a NULL terminated UCS-2 string. In order to define a UCS-2 string literal,
kernel.img on amd64 and i386 EFI targets is built with -fshort-wchar.

Also compile kernel.img on other EFI targets with -fshort-wchar.

Fixes: 37ddd94 (kern/efi/init: Log a console error during a stack check failure)
Reported-by: Glenn Washburn <development@efficientek.com>
Signed-off-by: Chris Coulson <chris.coulson@canonical.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/Makefile.core.def