From 7aee9d5df3da1dc43d63f785ea9f8e1da201eb8f Mon Sep 17 00:00:00 2001 From: Zhang Chen Date: Fri, 18 Aug 2023 10:19:34 +0800 Subject: [PATCH] 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 Reviewed-by: Junjie Mao --- hypervisor/boot/include/elf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hypervisor/boot/include/elf.h b/hypervisor/boot/include/elf.h index 57c1e30a77..7dd13b32da 100644 --- a/hypervisor/boot/include/elf.h +++ b/hypervisor/boot/include/elf.h @@ -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 */ };