acrn-hypervisor/hypervisor/boot/guest
Zhang Chen 4a176212eb HV: elf_loader: Fix copy gpa bug in load elf32
The elf images can't be loaded correctly because
the elf_loader copy_to_gpa with wrong size.
The p_filesz and p_memsz both belong to elf32_prog_entry,
this data structure describes segments loaded in ram.
p_filesz means size of segment in file and p_memsz
means size of segment in memory.
ELF loader should copy elf_img to gpa with the
size of p_prg_tbl_head32->p_filesz.

Tracked-On: #8642

Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Signed-off-by: Victor Sun <victor.sun@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
2024-07-10 15:26:02 +08:00
..
bzimage_loader.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
elf_loader.c HV: elf_loader: Fix copy gpa bug in load elf32 2024-07-10 15:26:02 +08:00
rawimage_loader.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
vboot_info.c HV: elf_loader: Make VM bootargs support elf guest 2024-07-10 15:26:02 +08:00