From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:WebAssembly binary format" |
|---|
| claim | "WebAssembly section ids (one byte before each section's LEB128 size). The required order of non-custom sections is type, import, function, table, memory, tag, global, export, start, elem, datacount, code, data: not the id order (datacount 12 precedes code 10, tag 13 sits between memory 5 and global 6). Custom sections (0) may appear anywhere." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:WebAssembly binary format" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "wasm_section_id" |
|---|
| underlying_type | "uint8_t" |
|---|
| values | | WASM_SEC_CUSTOM | 0 |
|---|
| WASM_SEC_TYPE | 1 |
|---|
| WASM_SEC_IMPORT | 2 |
|---|
| WASM_SEC_FUNCTION | 3 |
|---|
| WASM_SEC_TABLE | 4 |
|---|
| WASM_SEC_MEMORY | 5 |
|---|
| WASM_SEC_GLOBAL | 6 |
|---|
| WASM_SEC_EXPORT | 7 |
|---|
| WASM_SEC_START | 8 |
|---|
| WASM_SEC_ELEM | 9 |
|---|
| WASM_SEC_CODE | 10 |
|---|
| WASM_SEC_DATA | 11 |
|---|
| WASM_SEC_DATACOUNT | 12 |
|---|
| WASM_SEC_TAG | 13 |
|---|
|
|---|
| complete | true |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "WABT_FOREACH_BINARY_SECTION lists the sections in required order with their codes; src/binary-reader.cc lines 3176-3177 reject 'section %s out of order'" |
|---|
| repo | "https://github.com/WebAssembly/wabt" |
|---|
| commit | "1e9fffd80efa901b3e4708d4ba1f0df972e63518" |
|---|
| path | "include/wabt/binary.h" |
|---|
| lines | "46-60" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "Section order observed in wabt's libwabt.wasm: 1 2 3 4 5 6 7 9 12 10 11 (datacount before code); all 10 test modules parsed with this table and accepted by V8." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Section ids" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T14:35:58.930Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T13:05:10.883Z" |
|---|
| summary | "Read binary.h WABT_FOREACH_BINARY_SECTION: 14 sections, ids 0-13, listed in the required order (tag 13 after memory, data_count 12 before code); matches fact; complete true" |
|---|
| changed | |
|---|
|
|
|---|