mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-12 12:30:08 +00:00
hv: build hypervisor as PIE (position-independent executable)
Build and link hypervisor with "-pie" and remove static linking so that it generates .rela sections for relocation 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>
This commit is contained in:
@@ -39,6 +39,13 @@ SECTIONS
|
||||
|
||||
} > ram
|
||||
|
||||
.rela :
|
||||
{
|
||||
*(.rela*)
|
||||
*(.dyn*)
|
||||
} > ram
|
||||
|
||||
. = ALIGN(4) ;
|
||||
_ld_trampoline_load = .;
|
||||
|
||||
.trampoline : AT (_ld_trampoline_load)
|
||||
|
Reference in New Issue
Block a user