OvmfPkg/OvmfXen: Creating an ELF header
This patch changes the flash device image of OvmfXen to make it look like it's an ELF. For this, we replace the empty embedded variable store by a binary array, which is a ELF file header. The ELF header explain to a loader to load the binary at the address 1MB, then jump to the PVH entry point which will be created in a later patch. The header also includes a Xen ELF note that is part of the PVH ABI. That patch include OvmfXenElfHeaderGenerator.c which can be use to regenerate the ELF header, but this will be a manual step. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1689 Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Acked-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20190813113119.14804-6-anthony.perard@citrix.com>
This commit is contained in:
committed by
Laszlo Ersek
parent
3b96221f77
commit
1e9d6b0f98
@@ -373,6 +373,7 @@ F: OvmfPkg/Library/XenConsoleSerialPortLib/
|
||||
F: OvmfPkg/Library/XenHypercallLib/
|
||||
F: OvmfPkg/Library/XenIoMmioLib/
|
||||
F: OvmfPkg/OvmfXen.*
|
||||
F: OvmfPkg/OvmfXenElfHeaderGenerator.c
|
||||
F: OvmfPkg/PlatformPei/MemDetect.c
|
||||
F: OvmfPkg/PlatformPei/Platform.*
|
||||
F: OvmfPkg/PlatformPei/Xen.*
|
||||
|
Reference in New Issue
Block a user