Enum mach_object::Symbol
source · [−]pub enum Symbol<'a> {
Undefined {
name: Option<&'a str>,
external: bool,
desc: u16,
},
Absolute {
name: Option<&'a str>,
external: bool,
desc: u16,
entry: usize,
},
Defined {
name: Option<&'a str>,
external: bool,
section: Option<Rc<Section>>,
desc: u16,
entry: usize,
},
Prebound {
name: Option<&'a str>,
external: bool,
desc: u16,
},
Indirect {
name: Option<&'a str>,
external: bool,
desc: u16,
symbol: Option<&'a str>,
},
Debug {
name: Option<&'a str>,
section: Option<Rc<Section>>,
desc: u16,
addr: usize,
},
}
Expand description
the link-edit 4.3BSD “stab” style symbol
Variants
Undefined
Absolute
Defined
Prebound
Indirect
Debug
Implementations
Trait Implementations
sourceimpl<'a> SymbolReference for Symbol<'a>
impl<'a> SymbolReference for Symbol<'a>
sourcefn is_ref_dyn(&self) -> bool
fn is_ref_dyn(&self) -> bool
To simplify stripping of objects that use are used with the dynamic link editor, the static link editor marks the symbols defined an object that are referenced by a dynamicly bound object (dynamic shared libraries, bundles). With this marking strip knows not to strip these symbols. Read more
sourcefn lib_ordinal(&self) -> u8
fn lib_ordinal(&self) -> u8
The ordinal recorded references the libraries listed in the Mach-O file
sourcefn is_no_dead_strip(&self) -> bool
fn is_no_dead_strip(&self) -> bool
symbol is not to be dead stripped
sourcefn is_discarded(&self) -> bool
fn is_discarded(&self) -> bool
symbol is discarded
sourcefn is_weak_ref(&self) -> bool
fn is_weak_ref(&self) -> bool
symbol is weak referenced
sourcefn is_weak_def(&self) -> bool
fn is_weak_def(&self) -> bool
coalesed symbol is a weak definition
sourcefn is_ref_to_weak(&self) -> bool
fn is_ref_to_weak(&self) -> bool
reference to a weak symbol
sourcefn is_arm_thumb_def(&self) -> bool
fn is_arm_thumb_def(&self) -> bool
symbol is a Thumb function (ARM)
sourcefn is_resolver(&self) -> bool
fn is_resolver(&self) -> bool
the function is actually a resolver function and should be called to get the address of the real function to use. Read more
sourcefn is_alt_entry(&self) -> bool
fn is_alt_entry(&self) -> bool
symbol is pinned to the previous content.
Auto Trait Implementations
impl<'a> RefUnwindSafe for Symbol<'a>
impl<'a> !Send for Symbol<'a>
impl<'a> !Sync for Symbol<'a>
impl<'a> Unpin for Symbol<'a>
impl<'a> UnwindSafe for Symbol<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more