HV: boot/elf: Fix the wrong comments in elf.h

The definition of elf32_prog_entry with wrong comments,
p_filesz should means size of segment in file and p_memsz
should means size of segment in memory.

Tracked-On: #8642

Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Zhang Chen 2023-08-18 10:19:34 +08:00 committed by acrnsi-robot
parent 4a176212eb
commit 63efde6bdd
1 changed files with 2 additions and 2 deletions

View File

@ -137,8 +137,8 @@ struct elf32_prog_entry
uint32_t p_offset; /* Offset in file */
uint32_t p_vaddr; /* Virtual address in memory */
uint32_t p_paddr; /* Physical address in memory */
uint32_t p_filesz; /* Size of segment in memory */
uint32_t p_memsz; /* Size of segment in file */
uint32_t p_filesz; /* Size of segment in file */
uint32_t p_memsz; /* Size of segment in memory */
uint32_t p_flags; /* Segment attributes */
uint32_t p_align; /* Alignment of segment */
};