Header menu logo B2R2

BinSegment Type

Represents a format-agnostic, memory-mapped segment of a binary, i.e., a consecutive region that is mapped into the virtual memory when the binary is loaded.

Record fields

Record Field Description

Address

Full Usage: Address

Field type: Addr

Virtual address at which the segment is mapped.

Field type: Addr

FileSize

Full Usage: FileSize

Field type: uint64

Size of the segment's contents in the file. This can be smaller than Size when the segment has memory-only contents (e.g., .bss).

Field type: uint64

Name

Full Usage: Name

Field type: string option

Segment name, if the format names its segments. ELF program headers (segments) are unnamed, so this is None for ELF; Mach-O segments carry a name (e.g., "__TEXT", "__DATA"), and PE has no real segments so a synthesized segment borrows its backing section name.

Field type: string option

Offset

Full Usage: Offset

Field type: uint64

File offset of the segment's contents.

Field type: uint64

Permission

Full Usage: Permission

Field type: Permission

Access permission of the mapped segment.

Field type: Permission

Size

Full Usage: Size

Field type: uint64

Size of the segment in the virtual memory.

Field type: uint64

Type something to start searching.