add_relocations

Function add_relocations 

Source
pub fn add_relocations(
    object: &mut Object<'static>,
    section: SectionId,
    relocations: &[Relocation],
    local_symbol: Option<(LocalFunctionIndex, SymbolId)>,
) -> Result<(), CompileError>
Expand description

Apply the compiled code’s relocations to section, declaring the referenced symbols.