Module linker

Source

Structsยง

LinkedRuntime ๐Ÿ”’
Linked runtime module plus resolved runtime metadata.
RuntimeFunction ๐Ÿ”’
Resolved runtime function along with its ABI descriptor.
RuntimeFunctions ๐Ÿ”’
Runtime function metadata and function IDs resolved from ruka_runtime.wasm.

Functionsยง

align_up ๐Ÿ”’
Align an offset to the next multiple of alignment.
find_exported_function ๐Ÿ”’
Find a function export by name and return its function ID.
install_string_literals ๐Ÿ”’
Install UTF-8 string literal data segments and return pointer offsets.
link_runtime_with_literals ๐Ÿ”’
Parse runtime module and install string literals.
load_runtime_module ๐Ÿ”’
Load and parse the pre-generated runtime wasm module.
next_data_offset ๐Ÿ”’
Compute the next safe offset for adding active data segments.
read_const_i32_global ๐Ÿ”’
Read one exported constant i32 global value.
resolve_exported_global ๐Ÿ”’
Resolve an exported runtime global by name.
resolve_runtime_functions ๐Ÿ”’
Resolve required runtime exports from the loaded runtime module.
resolve_runtime_memory ๐Ÿ”’
Resolve the runtime module memory used for literal data segments.
update_heap_base_global ๐Ÿ”’
Update the exported heap base after injecting new literal data segments.