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
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
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies