Skip to main content

link_elf

Function link_elf 

Source
pub fn link_elf(elf_data: &[u8]) -> Result<Image, TranspileError>
Expand description

Link a RISC-V rv64em ELF binary into a v3 chain [javm_cap::image::Image]. The Image carries the PVM CODE sub-blob in its code field, populated endpoints (from any .subsoil.endpoints ELF section, or a single PC-0 fallback for subsoil::entry!-based guests), and standard kernel-ABI slot conventions.