SplitScript reference / Module / elfExport
Module.elfExport
Method
Module.elfExport(name: String) -> async address!
Resolves a defined function in a mapped little-endian ELF64 image.
Supports SysV and GNU symbol hashes and relocated dynamic pointers. Undefined, hidden, and indirect functions are not returned. Header and table reads stay within the mapped module. Large walks yield regularly; malformed tables and exhausted lookup limits return an error.
Parameters
name: Exact case-sensitive function name, at most 4096 UTF-8 bytes.
Effects: allocates, mutates the receiver, reads process memory, requires an attached process, suspends, cancels when the process closes
Runtime behavior: available in suspending attachment code; suspends; cancels when the process closes
Examples
Resolve the Linux Mono assembly enumerator
let mono = await process.module("libmonobdwgc-2.0.so")
let enumerator = await mono.elfExport("mono_assembly_foreach") else return