pub struct Segment {
pub addr: usize,
pub size: usize,
pub mod_rel_addr: usize,
pub flags: Perm,
}
Expand description
Represents an ELF segment at runtime.
Fields§
§addr: usize
Gives the runtime virtual address of this segment’s contents.
size: usize
Gives the memory size of this segment’s contents.
mod_rel_addr: usize
Gives the module virtual address of this segment with the ELF file.
flags: Perm
Gives the permissions found in the ELF file. These permissions are not necessarily the permissions present at runtime however.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnwindSafe for Segment
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