Enum lief::elf::relocation::Purpose
pub enum Purpose {
NONE,
PLTGOT,
DYNAMIC,
OBJECT,
UNKNOWN(u32),
}
Expand description
The purpose of a relocation defines how this relocation is used by the loader.
Variants§
NONE
PLTGOT
The relocation is associated with the PLT/GOT resolution
DYNAMIC
The relocation is used for regulard data/code relocation
OBJECT
The relocation is used in an object file
UNKNOWN(u32)
Implementations§
§impl Purpose
impl Purpose
pub fn from_value(value: u32) -> Self
Trait Implementations§
§impl Ord for Purpose
impl Ord for Purpose
§impl PartialOrd<Purpose> for Purpose
impl PartialOrd<Purpose> for Purpose
§fn partial_cmp(&self, other: &Purpose) -> Option<Ordering>
fn partial_cmp(&self, other: &Purpose) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Purpose
impl Eq for Purpose
impl StructuralEq for Purpose
impl StructuralPartialEq for Purpose
Auto Trait Implementations§
impl RefUnwindSafe for Purpose
impl Send for Purpose
impl Sync for Purpose
impl Unpin for Purpose
impl UnwindSafe for Purpose
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