Skip to content

Commit d4acce2

Browse files
GorrayLiCopilot
andauthored
Update components/lwp/lwp_elf.c
Co-authored-by: Copilot <[email protected]>
1 parent 5bc0404 commit d4acce2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/lwp/lwp_elf.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,8 +651,9 @@ static int elf_file_mmap(elf_load_info_t *load_info, elf_info_t *elf_info, rt_ub
651651
load_addr = tmp_phdr->p_vaddr + *load_base;
652652
LOG_D("%s : p_vaddr : 0x%x, load_addr : 0x%x", __func__, tmp_phdr->p_vaddr, load_addr);
653653

654-
/* When both the segment's virtual address and the load base are 0, it indicates that the segment should be loaded
655-
at any available address rather than a fixed one. particularly useful for PIC or shared libraries.*/
654+
/* When both the segment's virtual address and the load base are 0, the segment is loaded at any available
655+
address rather than a fixed one. This behavior is particularly useful for Position-Independent Code (PIC)
656+
or shared libraries. */
656657
if ((tmp_phdr->p_vaddr == 0) && (*load_base == 0))
657658
{
658659
flags &= ~MAP_FIXED;

0 commit comments

Comments
 (0)