pub struct Section {
pub name: String,
pub address: u64,
pub size: u64,
pub writable: bool,
pub executable: bool,
}Expand description
A named region of the image, as the container’s own layout table lists
it: an ELF section header or a PE section. Returned by
BinaryFormat::sections.
Fields§
§name: StringThe name from the container’s string table, e.g. .text.
address: u64Link-time virtual address of the first byte.
size: u64Size in memory, zero-filled tail (.bss) included.
writable: boolThe container’s writable flag (SHF_WRITE, IMAGE_SCN_MEM_WRITE).
executable: boolThe container’s executable flag (SHF_EXECINSTR,
IMAGE_SCN_MEM_EXECUTE).
Trait Implementations§
impl Eq for Section
impl StructuralPartialEq for Section
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnsafeUnpin for Section
impl UnwindSafe for Section
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