pub struct ElfSegment {
pub vaddr: u32,
pub data: Vec<u8>,
pub mem_size: u32,
}Expand description
A loadable segment (PT_LOAD) from an ELF file.
Fields§
§vaddr: u32Virtual address where this segment should be loaded.
data: Vec<u8>Raw bytes from the ELF file (p_filesz bytes).
mem_size: u32Total size in memory (p_memsz). Bytes beyond data.len() are zero-filled (BSS).
Trait Implementations§
Source§impl Clone for ElfSegment
impl Clone for ElfSegment
Source§fn clone(&self) -> ElfSegment
fn clone(&self) -> ElfSegment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ElfSegment
impl RefUnwindSafe for ElfSegment
impl Send for ElfSegment
impl Sync for ElfSegment
impl Unpin for ElfSegment
impl UnsafeUnpin for ElfSegment
impl UnwindSafe for ElfSegment
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