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

Fields

name: Option<&'a str>
external: bool
desc: u16

Absolute

Fields

name: Option<&'a str>
external: bool
desc: u16
entry: usize

Defined

Fields

name: Option<&'a str>
external: bool
section: Option<Rc<Section>>
desc: u16
entry: usize

Prebound

Fields

name: Option<&'a str>
external: bool
desc: u16

Indirect

Fields

name: Option<&'a str>
external: bool
desc: u16
symbol: Option<&'a str>

Debug

Fields

name: Option<&'a str>
section: Option<Rc<Section>>
desc: u16
addr: usize

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

raw desc value

types of references

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

The ordinal recorded references the libraries listed in the Mach-O file

symbol is not to be dead stripped

symbol is discarded

symbol is weak referenced

coalesed symbol is a weak definition

reference to a weak symbol

symbol is a Thumb function (ARM)

the function is actually a resolver function and should be called to get the address of the real function to use. Read more

source

fn is_alt_entry(&self) -> bool

symbol is pinned to the previous content.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.