[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160415225328.GW2829@codeblueprint.co.uk>
Date: Fri, 15 Apr 2016 23:53:28 +0100
From: Matt Fleming <matt@...eblueprint.co.uk>
To: Roger Pau Monné <roger.pau@...rix.com>
Cc: Andy Lutomirski <luto@...capital.net>,
Juergen Gross <jgross@...e.com>,
"Luis R. Rodriguez" <mcgrof@...nel.org>,
David Vrabel <david.vrabel@...rix.com>,
Julien Grall <julien.grall@....com>,
Stefano Stabellini <stefano.stabellini@...citrix.com>,
Andrew Cooper <andrew.cooper3@...rix.com>,
Boris Ostrovsky <boris.ostrovsky@...cle.com>,
Charles Arndol <carnold@...e.com>,
Jim Fehlig <jfehlig@...e.com>, Jan Beulich <JBeulich@...e.com>,
Daniel Kiper <daniel.kiper@...cle.com>,
"H. Peter Anvin" <hpa@...or.com>, X86 ML <x86@...nel.org>,
Gary Lin <GLin@...e.com>, Borislav Petkov <bp@...en8.de>,
joeyli <jlee@...e.com>, Jeffrey Cheung <JCheung@...e.com>,
Michael Chang <MChang@...e.com>,
Vojtěch Pavlík <vojtech@...e.cz>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"xen-devel@...ts.xenproject.org" <xen-devel@...ts.xenproject.org>,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: HVMLite / PVHv2 - using x86 EFI boot entry
(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.
Powered by blists - more mailing lists