From: jackyclivia@163.com (Jacky) Date: Fri, 29 Mar 2013 15:15:11 +0800 (CST) Subject: elf_map: why offset of vma need to subtract eppnt->p_vaddr ? Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi All, When mmaping elf image into memory, why offset vma need to subtract eppnt->p_vaddr as the following code ? static unsigned long elf_map() { ... unsigned long off = eppnt->p_offset - ELF_PAGEOFFSET(eppnt->p_vaddr); ... } Thanks in advance. Jacky -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130329/c193e60d/attachment.html