Trait object::ObjectSegment
source · pub trait ObjectSegment<'data> {
fn address(&self) -> u64;
fn size(&self) -> u64;
fn data(&self) -> &'data [u8] ⓘ;
fn name(&self) -> Option<&str>;
}
Expand description
A loadable segment defined in an object file.
For ELF, this is a program header with type PT_LOAD
.
For Mach-O, this is a load command with type LC_SEGMENT
or LC_SEGMENT_64
.