Elf32_Phdr Struct Reference

ELF program header. More...

`#include <ELF.h>`

## Public Attributes

Elf32_Word | p_type
| What type of segment this header describes.
Elf32_Off | p_offset
| Offset in bytes from start of file to the first byte of the segment.
Elf32_Addr | p_vaddr
| Virtual address at which the segment will reside in memory.
Elf32_Addr | p_paddr
| Physical address, for systems where this is relevant.
Elf32_Word | p_filesz
| Number of bytes of file data the segment consumes. May be zero.
Elf32_Word | p_memsz
| Size in bytes of the segment in memory. May be zero.
Elf32_Word | p_flags
| Flags relevant to the segment.
Elf32_Word | p_align
| Alignment constraint for segment addresses. Possible values are 0 and positive powers of 2.

## Detailed Description

ELF program header.

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. A file specifies its own program header size with the ELF header's Elf32_Ehdr::e_phentsize and Elf32_Ehdr::e_phnum members.

## Member Data Documentation

Elf32_Word Elf32_Phdr::p_align

Alignment constraint for segment addresses. Possible values are 0 and positive powers of 2.

Elf32_Word Elf32_Phdr::p_filesz

Number of bytes of file data the segment consumes. May be zero.

Elf32_Word Elf32_Phdr::p_flags

Flags relevant to the segment.

Elf32_Word Elf32_Phdr::p_memsz

Size in bytes of the segment in memory. May be zero.

Elf32_Off Elf32_Phdr::p_offset

Offset in bytes from start of file to the first byte of the segment.

Elf32_Addr Elf32_Phdr::p_paddr

Physical address, for systems where this is relevant.

Elf32_Word Elf32_Phdr::p_type

What type of segment this header describes.

Elf32_Addr Elf32_Phdr::p_vaddr

Virtual address at which the segment will reside in memory.

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

- apps/elftosb/common/ELF.h