Skip to content

Commit

Permalink
HV: boot/elf: Fix the wrong comments in elf.h
Browse files Browse the repository at this point in the history
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: projectacrn#8642

Signed-off-by: Zhang Chen <[email protected]>
Reviewed-by: Junjie Mao <[email protected]>
  • Loading branch information
zhangckid committed Jul 3, 2024
1 parent d766487 commit 7aee9d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hypervisor/boot/include/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
};
Expand Down

0 comments on commit 7aee9d5

Please sign in to comment.