Commit 0f51179
docs: document that modules must be WASI modules (#329)
SLEdge assumes every module it loads is a WASI module that uses linear
memory, but this assumption was undocumented. The runtime already
validates it during dlopen: a non-WASI / no-linear-memory module fails
because its aWsm-generated memory symbols (sledge_abi__init_mem,
sledge_abi__wasm_memory_starting_pages/_max_pages) don't resolve.
Document the requirement in docs/WASI.md: modules must be WASI modules
compiled by aWsm and linked against libsledge, linear memory is
mandatory, why wasi_snapshot_preview1_* symbol presence is not a useful
WASI signal (whole-archive exports), and the --runtime-globals situation.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 1e7bd47 commit 0f51179
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
3 | 18 | | |
4 | 19 | | |
5 | 20 | | |
| |||
0 commit comments