pub struct Segment<'a> { /* private fields */ }
Expand description
Structure which reprents an ELF segment
Implementations§
§impl<'a> Segment<'a>
impl<'a> Segment<'a>
pub fn file_offset(&self) -> u64
pub fn file_offset(&self) -> u64
The file offset of the data associated with this segment
pub fn virtual_address(&self) -> u64
pub fn virtual_address(&self) -> u64
The virtual address of the segment.
pub fn physical_address(&self) -> u64
pub fn physical_address(&self) -> u64
The physical address of the segment. This value is not really relevant on systems like Linux or Android. On the other hand, Qualcomm trustlets might use this value.
Usually this value matches Segment::virtual_address
pub fn physical_size(&self) -> u64
pub fn physical_size(&self) -> u64
The file size of the data associated with this segment
pub fn virtual_size(&self) -> u64
pub fn virtual_size(&self) -> u64
The in-memory size of this segment.
Usually, if the .bss
segment is wrapped by this segment
then, virtual_size is larger than physical_size
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Segment<'a>
impl<'a> !Send for Segment<'a>
impl<'a> !Sync for Segment<'a>
impl<'a> Unpin for Segment<'a>
impl<'a> UnwindSafe for Segment<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more