hv: add multiboot2 tags to load relocatable raw binary

GRUB multiboot2 doesn't support relocation for ELF, which means it can't
load acrn.32.out to other address other than the one specified in ELF
header. Thus we need to use the raw binary file acrn.bin, and add
address/entry address/relocatable tags to instruct multiboot2 loader
how to load the raw binary.

Tracked-On: #4441
Reviewed-by: Fengwei Yin <fengwei.yin@intel.com>
Signed-off-by: Zide Chen <zide.chen@intel.com>
This commit is contained in:
Chen, Zide
2020-03-02 18:16:49 +00:00
committed by wenlingz
parent 97fc0efe20
commit 2aa8c9e5d4
3 changed files with 58 additions and 6 deletions

View File

@@ -39,6 +39,7 @@ endchoice
config MULTIBOOT2
bool "Multiboot2 support"
depends on RELOC
default n
help
Support boot ACRN from multiboot2 protocol. Multiboot2 support is needed for