From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:WebAssembly binary format" |
|---|
| claim | "Subsection ids inside the "name" custom section (each subsection: id byte, LEB128 size, payload): 0 module name, 1 function names, 2 local names, and from the extended-name-section proposal 3 labels, 4 types, 5 tables, 6 memories, 7 globals, 8 elem segments, 9 data segments, 10 fields, 11 tags. Function-name entries are (function index, name) pairs in the function index space, so imported functions come first." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:WebAssembly binary format" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "wasm_name_subsection" |
|---|
| underlying_type | "uint8_t" |
|---|
| values | | WASM_NAMES_MODULE | 0 |
|---|
| WASM_NAMES_FUNCTION | 1 |
|---|
| WASM_NAMES_LOCAL | 2 |
|---|
| WASM_NAMES_LABEL | 3 |
|---|
| WASM_NAMES_TYPE | 4 |
|---|
| WASM_NAMES_TABLE | 5 |
|---|
| WASM_NAMES_MEMORY | 6 |
|---|
| WASM_NAMES_GLOBAL | 7 |
|---|
| WASM_NAMES_ELEM_SEGMENT | 8 |
|---|
| WASM_NAMES_DATA_SEGMENT | 9 |
|---|
| WASM_NAMES_FIELD | 10 |
|---|
| WASM_NAMES_TAG | 11 |
|---|
|
|---|
| complete | true |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "enum class NameSectionSubsection Module = 0 ... Tag = 11" |
|---|
| repo | "https://github.com/WebAssembly/wabt" |
|---|
| commit | "1e9fffd80efa901b3e4708d4ba1f0df972e63518" |
|---|
| path | "include/wabt/binary.h" |
|---|
| lines | "86-101" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "dhrystone.wasm (wabt repo) has 72 function names starting at index 0 = __imported_wasi_snapshot_preview1_args_get (an import) and a global subsection 7 naming global 0 __stack_pointer; V8 uses subsection 1 names in stack traces of a hand-made module." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Name section subsections" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T14:35:59.152Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T13:05:10.959Z" |
|---|
| summary | "Read binary.h 86-101: NameSectionSubsection Module 0 .. Tag 11, twelve values, all match; complete true" |
|---|
| changed | |
|---|
|
|
|---|