Skip to main content

load

Function load 

Source
pub fn load(
    sections: &[NativeImage],
    instructions: &mut Vec<Instr>,
    dylibs: Vec<*const u8>,
) -> Option<NativeCode>
Expand description

Loads the first of sections this machine can run: maps its code, and rewrites the calls it covers in instructions. Answers None, leaving instructions as they were, when no section fits or the code cannot be made executable; the program then runs on bytecode alone.