Struct elf::types::ProgramHeader [] [src]

pub struct ProgramHeader {
    pub progtype: ProgType,
    pub offset: u64,
    pub vaddr: u64,
    pub paddr: u64,
    pub filesz: u64,
    pub memsz: u64,
    pub flags: ProgFlag,
    pub align: u64,
}

Encapsulates the contents of an ELF Program Header

The program header table is an array of program header structures describing the various segments for program execution.

Fields

progtype: ProgType

Program segment type

offset: u64

Offset into the ELF file where this segment begins

vaddr: u64

Virtual adress where this segment should be loaded

paddr: u64

Physical address where this segment should be loaded

filesz: u64

Size of this segment in the file

memsz: u64

Size of this segment in memory

flags: ProgFlag

Flags for this segment

align: u64

file and memory alignment

Trait Implementations

impl Eq for ProgramHeader
[src]

impl PartialEq for ProgramHeader
[src]

fn eq(&self, __arg_0: &ProgramHeader) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &ProgramHeader) -> bool

This method tests for !=.

impl Debug for ProgramHeader
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for ProgramHeader
[src]

fn clone(&self) -> ProgramHeader

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for ProgramHeader
[src]

impl Display for ProgramHeader
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.