Function wasmer_compiler::link_module

source ยท
pub fn link_module<'a>(
    _module: &ModuleInfo,
    allocated_functions: &PrimaryMap<LocalFunctionIndex, FunctionExtent>,
    function_relocations: impl Iterator<Item = (LocalFunctionIndex, impl Iterator<Item = &'a (impl RelocationLike + 'a)>)>,
    allocated_sections: &PrimaryMap<SectionIndex, SectionBodyPtr>,
    section_relocations: impl Iterator<Item = (SectionIndex, impl Iterator<Item = &'a (impl RelocationLike + 'a)>)>,
    libcall_trampolines: SectionIndex,
    trampoline_len: usize,
)
Expand description

Links a module, patching the allocated functions with the required relocations and jump tables.