My Kernel v0.1.0
elf32_phdr Struct Reference

ELF Program header entry (segment) More...

#include <elf32.h>

Data Fields

elf32_word p_type
 The segment's type.
 
elf32_off p_offset
 Offset to the segment's first byte in the file.
 
elf32_addr p_vaddr
 Segment's virtual address in memory.
 
elf32_addr p_paddr
 Segment's physical address in memory.
 
elf32_word p_filesz
 Size of this segment inside the file.
 
elf32_word p_memsz
 Size of this segment inside memory.
 
elf32_word p_pflags
 A combination of p_pflags.
 
elf32_word p_align
 Alignment requirement for the virtual load address.
 

Detailed Description

An executable or shared object file’s program header table is an array of structures, each describing a segment or other information the system needs to prepare the program for execution. An object file segment contains one or more sections.

Program headers are meaningful only for executable and shared object files.

The size of the program header size is specified in the ELF header's e_phentsize and e_phnum members (size * num).


The documentation for this struct was generated from the following file: