Header menu logo B2R2

ProgramHeader Type

Represents a program header in ELF. A program header describes a segment of the program.

Record fields

Record Field Description

PHAddr

Full Usage: PHAddr

Field type: Addr

The virtual address at which the first byte of the segment resides in memory.

Field type: Addr

PHAlignment

Full Usage: PHAlignment

Field type: uint64

The value to which the segments are aligned in memory and in the file.

Field type: uint64

PHFileSize

Full Usage: PHFileSize

Field type: uint64

The number of bytes in the file image of the segment.

Field type: uint64

PHFlags

Full Usage: PHFlags

Field type: int

Flags relevant to the segment.

Field type: int

PHMemSize

Full Usage: PHMemSize

Field type: uint64

The number of bytes in the memory image of the segment. This can be greater than PHFileSize as some sections (w/ SHTNoBits type) occupy nothing in the binary file, but can be mapped in the segment at runtime.

Field type: uint64

PHOffset

Full Usage: PHOffset

Field type: uint64

An offset from the beginning of the file at which the first byte of the segment resides in memory.

Field type: uint64

PHPhyAddr

Full Usage: PHPhyAddr

Field type: Addr

The physical address of the segment. This is reserved for systems using physical addresses.

Field type: Addr

PHType

Full Usage: PHType

Field type: ProgramHeaderType

Program header type.

Field type: ProgramHeaderType

Static members

Static member Description

ProgramHeader.FlagsToPerm(flag)

Full Usage: ProgramHeader.FlagsToPerm(flag)

Parameters:
    flag : int

Returns: Permission
Modifiers: inline

Converts the PHFlags field of a program header to a Permission value.

flag : int
Returns: Permission

Type something to start searching.