Struct lief::pe::symbol::AuxiliaryWeakExternal
pub struct AuxiliaryWeakExternal<'a> { /* private fields */ }Expand description
“Weak externals” are a mechanism for object files that allows flexibility at
link time. A module can contain an unresolved external symbol (sym1), but
it can also include an auxiliary record that indicates that if sym1 is not
present at link time, another external symbol (sym2) is used to resolve
references instead.
If a definition of sym1 is linked, then an external reference to the
symbol is resolved normally. If a definition of sym1 is not linked, then all
references to the weak external for sym1 refer to sym2 instead. The external
symbol, sym2, must always be linked; typically, it is defined in the module
that contains the weak reference to sym1.
Reference: https://learn.microsoft.com/en-us/windows/win32/debug/pe-format#auxiliary-format-3-weak-externals
Implementations§
§impl AuxiliaryWeakExternal<'_>
impl AuxiliaryWeakExternal<'_>
pub fn sym_idx(&self) -> u32
pub fn sym_idx(&self) -> u32
The symbol-table index of sym2, the symbol to be linked if sym1 is not
found.