From a7d67f1f03d5000c1a036499d932327060349e24 Mon Sep 17 00:00:00 2001 From: JF Bastien Date: Thu, 25 Feb 2016 09:04:28 -0800 Subject: Unknown sections Fixes #208. A later PR will make sure all sections start with the same format (so all sections use bytes, instead of count, making it easy to know the byte count of unknown sections). We'll also use strings instead. --- BinaryEncoding.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'BinaryEncoding.md') diff --git a/BinaryEncoding.md b/BinaryEncoding.md index fd5c031..a416c7a 100644 --- a/BinaryEncoding.md +++ b/BinaryEncoding.md @@ -187,13 +187,15 @@ stored to from dedicated instructions. | type | `uint8` | the type of the global, as a memory type | | exported | `uint8` | a boolean indicating whether the global variable is exported | -### WorkInProgress: WLL section +### Unknown sections | Field | Type | Description | | ----- | ----- | ----- | -| id = `0x11` | `uint8` | section identifier for globals | -| size | `varuint32` | size of this section in bytes | -| body | `bytes` | contents of this section | +| id | `uint8` | section identifier | +| size | `varuint32` | size of this section in bytes | +| body | `bytes` | contents of this section | + +Sections whose ID is unknown to the WebAssembly implementation are ignored. # AST Encoding -- cgit v1.2.3