Re: HVMLite / PVHv2 - using x86 EFI boot entry
From: Matt Fleming
Date: Fri Apr 15 2016 - 18:53:38 EST
(Sorry, just realised I never replied to this)
On Wed, 13 Apr, at 01:59:10PM, Roger Pau Monné wrote:
>
> Is this header compatible with the ELF header? Con both co-exist in the
> same binary without issues?
Nope, they cannot. We get away with mixing bzImage headers and PE/COFF
headers for the EFI stub because bzImage has no magic string and
contains historical code at the start of the file. The code is never
executed in practice nowadays (it tells the user to use a boot loader
instead of direct execution) so we just stamp a PE/COFF header over it
when CONFIG_EFI_STUB is enabled.