pub struct ElfSegment {
pub offset: usize,
pub vaddr: usize,
pub filesz: usize,
pub memsz: usize,
pub flags: u32,
}Expand description
A parsed LOAD segment from an ELF64 file.
Fields§
§offset: usizeFile offset of the segment data
vaddr: usizeVirtual address where this segment should be loaded
filesz: usizeSize of the segment in the file
memsz: usizeSize of the segment in memory (may be larger than filesz for .bss)
flags: u32Segment flags (PF_R=4, PF_W=2, PF_X=1)
Trait Implementations§
Source§impl Clone for ElfSegment
impl Clone for ElfSegment
Auto Trait Implementations§
impl Forget for ElfSegment
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