pub struct ElfSection {
pub name: String,
pub address: u64,
pub size: u64,
pub writable: bool,
pub executable: bool,
pub nobits: bool,
}Expand description
An allocated section header (SHF_ALLOC set): a named slice of the
loaded image such as .text or .bss. Absent from a file whose section
table was stripped, which loaders never need.
Fields§
§name: StringThe name from .shstrtab.
address: u64sh_addr.
size: u64sh_size.
writable: boolSHF_WRITE.
executable: boolSHF_EXECINSTR.
nobits: boolSHT_NOBITS: the section occupies no file bytes and is zero-filled
by the loader (.bss, .tbss).
Trait Implementations§
Source§impl Clone for ElfSection
impl Clone for ElfSection
Source§impl Debug for ElfSection
impl Debug for ElfSection
impl Eq for ElfSection
Source§impl PartialEq for ElfSection
impl PartialEq for ElfSection
impl StructuralPartialEq for ElfSection
Auto Trait Implementations§
impl Freeze for ElfSection
impl RefUnwindSafe for ElfSection
impl Send for ElfSection
impl Sync for ElfSection
impl Unpin for ElfSection
impl UnsafeUnpin for ElfSection
impl UnwindSafe for ElfSection
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