Draft wamr modifications + host program structure sections

This commit is contained in:
2026-09-11 17:03:16 +02:00
parent 0d4c0fb3c9
commit 63531014d6
24 changed files with 526 additions and 190 deletions
@@ -0,0 +1,12 @@
static NativeSymbol native_symbols[] = {
{"fail_start_trace", (void *)host_fail_start_trace, "()", NULL},
{"fail_stop_trace", (void *)host_fail_stop_trace, "()", NULL},
{"fail_marker_positive", (void *)host_fail_marker_positive, "()", NULL},
{"fail_marker_negative", (void *)host_fail_marker_negative, "()", NULL},
{"fail_marker_detected", (void *)host_fail_marker_detected, "()", NULL},
};
int count = sizeof(native_symbols) / sizeof(NativeSymbol);
if (!wasm_runtime_register_natives("env", native_symbols, count)) {
goto error_cleanup;
}