From c0c0dc12f60f4fd6413065015becab351e095d3c Mon Sep 17 00:00:00 2001 From: Luke Wagner Date: Mon, 7 Mar 2016 11:45:32 -0600 Subject: Store data segments inline --- BinaryEncoding.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'BinaryEncoding.md') diff --git a/BinaryEncoding.md b/BinaryEncoding.md index 0aac532..532f632 100644 --- a/BinaryEncoding.md +++ b/BinaryEncoding.md @@ -212,12 +212,12 @@ A module may only contain one data segments section. | count | `varuint32` | count of data segments to follow | | entries | `data_segment*` | repeated data segments as described below | -* ```varuint32```: The number of data segments in the section. -* For each data segment: - - ```uint32```: The base address of the data segment in memory. - - ```uint32```: The offset of the data segment's data in the file. - - ```uint32```: The size of the data segment (in bytes) - - ```uint8```: ```1``` if the segment's data should be automatically loaded into memory at module load time. +a `data_segment` is: + +| Field | Type | Description | +| ----- | ----- | ----- | +| offset | `uint32` | the offset in linear memory at which to store the data | +| size | `uint32` | the size of the data segment (in bytes) | ### Indirect Function Table section -- cgit v1.2.3