Enum mach_object::Symbol
[−]
[src]
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, }, }
the link-edit 4.3BSD "stab" style symbol
Variants
Undefined
Fields of Undefined
name: Option<&'a str> | |
external: bool | |
desc: u16 |
Absolute
Fields of Absolute
name: Option<&'a str> | |
external: bool | |
desc: u16 | |
entry: usize |
Defined
Fields of Defined
name: Option<&'a str> | |
external: bool | |
section: Option<Rc<Section>> | |
desc: u16 | |
entry: usize |
Prebound
Fields of Prebound
name: Option<&'a str> | |
external: bool | |
desc: u16 |
Indirect
Fields of Indirect
name: Option<&'a str> | |
external: bool | |
desc: u16 | |
symbol: Option<&'a str> |
Debug
Fields of Debug
name: Option<&'a str> | |
section: Option<Rc<Section>> | |
desc: u16 | |
addr: usize |
Methods
impl<'a> Symbol<'a>
[src]
Trait Implementations
impl<'a> Debug for Symbol<'a>
[src]
impl<'a> Display for Symbol<'a>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> SymbolReference for Symbol<'a>
[src]
fn desc(&self) -> u16
[src]
raw desc
value
fn ref_type(&self) -> u8
[src]
types of references
fn is_ref_dyn(&self) -> bool
[src]
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
fn lib_ordinal(&self) -> u8
[src]
The ordinal recorded references the libraries listed in the Mach-O file
fn is_no_dead_strip(&self) -> bool
[src]
symbol is not to be dead stripped
fn is_discarded(&self) -> bool
[src]
symbol is discarded
fn is_weak_ref(&self) -> bool
[src]
symbol is weak referenced
fn is_weak_def(&self) -> bool
[src]
coalesed symbol is a weak definition
fn is_ref_to_weak(&self) -> bool
[src]
reference to a weak symbol
fn is_arm_thumb_def(&self) -> bool
[src]
symbol is a Thumb function (ARM)
fn is_resolver(&self) -> bool
[src]
the function is actually a resolver function and should be called to get the address of the real function to use. Read more
fn is_alt_entry(&self) -> bool
[src]
symbol is pinned to the previous content.