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
|
Virtual address at which the segment is mapped.
|
|
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).
|
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.
|
Full Usage:
Offset
Field type: uint64
|
File offset of the segment's contents.
|
|
Access permission of the mapped segment.
|
Full Usage:
Size
Field type: uint64
|
Size of the segment in the virtual memory.
|
B2R2