]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/OvmfXen: Creating an ELF header
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 13 Aug 2019 11:30:49 +0000 (12:30 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Wed, 21 Aug 2019 16:03:49 +0000 (18:03 +0200)
commit1e9d6b0f98b53498f8ae4104502da087493eba2c
tree56619502f67c2e73202e17050c08485e6e78c6c5
parent3b96221f77f4181524657e145b51fa423f3faebe
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>
Maintainers.txt
OvmfPkg/OvmfXen.fdf
OvmfPkg/OvmfXenElfHeaderGenerator.c [new file with mode: 0644]