Re: [PATCH] efi: compile kernel.img with -fshort-wchar on all EFI targets

2022-10-13 Thread Daniel Kiper
On Tue, Oct 11, 2022 at 01:26:33PM +0100, Chris Coulson wrote: > 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 c

[PATCH] efi: compile kernel.img with -fshort-wchar on all EFI targets

2022-10-11 Thread Chris Coulson
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: 37ddd