pub enum ElfKind {
Executable,
SharedObject,
Relocatable,
Core,
Other(u16),
}Expand description
The file type from e_type: what kind of object this is, and so whether
a loader may place it where it likes.
Variants§
Executable
ET_EXEC: linked to run at its segments’ addresses.
ET_DYN: a shared object or a position-independent executable; the
loader chooses the base and adds it to every address.
Relocatable
ET_REL: an unlinked object file.
Core
ET_CORE: a core dump.
Other(u16)
Anything else, with the raw e_type.
Trait Implementations§
impl Copy for ElfKind
impl Eq for ElfKind
impl StructuralPartialEq for ElfKind
Auto Trait Implementations§
impl Freeze for ElfKind
impl RefUnwindSafe for ElfKind
impl Send for ElfKind
impl Sync for ElfKind
impl Unpin for ElfKind
impl UnsafeUnpin for ElfKind
impl UnwindSafe for ElfKind
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