pub struct SymbolMapBuilder(/* private fields */);Expand description
A builder for a SymbolMap.
Implementations§
Source§impl SymbolMapBuilder
impl SymbolMapBuilder
Sourcepub fn build<'data, O>(self, object: &O) -> SymbolMap<SymbolMapName<'data>>
pub fn build<'data, O>(self, object: &O) -> SymbolMap<SymbolMapName<'data>>
Read the symbols from an object file to create a symbol map.
The map will only contain defined text and data symbols. The dynamic symbol table will only be used if there are no debugging symbols.
If symbol sizes are unknown then we guess the size based on the next symbol or end of section.
This does not work well if multiple sections use the same base address, which is common for relocatable object files. The symbols will be overlapping, and the symbol returned by lookups may be indeterministic. Additionally, if the symbol size is unknown then we may use a symbol or section end address from a different section to guess its size.
Trait Implementations§
Source§impl Debug for SymbolMapBuilder
impl Debug for SymbolMapBuilder
Source§impl Default for SymbolMapBuilder
impl Default for SymbolMapBuilder
Source§fn default() -> SymbolMapBuilder
fn default() -> SymbolMapBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SymbolMapBuilder
impl RefUnwindSafe for SymbolMapBuilder
impl Send for SymbolMapBuilder
impl Sync for SymbolMapBuilder
impl Unpin for SymbolMapBuilder
impl UnsafeUnpin for SymbolMapBuilder
impl UnwindSafe for SymbolMapBuilder
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