ELF Segments and Page Size

From: Prakash Prabhu (prakash.prabhu_at_gmail.com)
Date: 01/18/05


Date: 18 Jan 2005 08:28:41 -0800

Hi,

Is there any relation between the size of the segments ( a set of
sections )
in an ELF File ( in its execution view ) and the page frame size ?
Do both of them have to be equal ie , does a segment always have to
fit into a page or can it span multiple pages ? What happens to the
remaining
space if it is less than the page size ?

Thanks,
Prakash



Relevant Pages

  • Re: How to read core files?
    ... It has only "execution view" ElfXX_Phdr segments, ... The "Program header table" seems to contain ... Josef Möllers ...
    (comp.os.linux.development.apps)
  • Re: simple c-code
    ... Guillaume <"grsNOSPAM at NOTTHATmail dot com"> wrote: ... I believe that the inability to prevent execution of pages, ... than segments, has made this impractical on x86s for many operating ...
    (comp.lang.c)
  • Re: How to read core files?
    ... A core file does not have any "linking view" ElfXX_Shdr sections. ... It has only "execution view" ElfXX_Phdr segments, ... the PT_LOAD segments are mapped into memory by ld-linux or dlopen. ...
    (comp.os.linux.development.apps)