acrn-hypervisor/hypervisor/boot
Zide Chen ca728fb3c5 hv: add code to fixup ELF relocation sections
For UEFI boot, currently EFI application loads hypervisor to the
hard coded COMNFIG_RAM_START, which may cause it fail to boot if
this address is not available in the target.

This patch series resolve this issue by allocating memory for hypervisor
at run time, and do relocation fixup if the allocated address is
different from the base address that the hypervisor is built.

The summary of the first patch [1/6] in this series:

In x86_64 ELF, .rela sections hold information of symbols which must be
relocated before being referenced.

This patch adds code to fixup .rela sections with the relocated offset,
also, it provides utilities to assist address fixup

Signed-off-by: Zheng Gen <gen.zheng@intel.com>
Signed-off-by: Zide Chen <zide.chen@intel.com>
Reviewed-by: Yin Fengwei <fengwei.yin@intel.com>
2018-07-11 10:25:16 +08:00
..
include hv: add code to fixup ELF relocation sections 2018-07-11 10:25:16 +08:00
sbl hv:fix "missing for discarded return value" for memcpy_s and strcpy_s 2018-07-09 09:22:37 +08:00
acpi.c HV: Assignment should not mix with operator 2018-07-10 11:56:36 +08:00
dmar_parse.c Revert "hv: More changes to enable GPU passthru" 2018-07-05 11:06:47 +08:00
reloc.c hv: add code to fixup ELF relocation sections 2018-07-11 10:25:16 +08:00