Skip to content

Commit

Permalink
Add a note explaining WASM_DATA_SIZE.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Dec 6, 2017
1 parent 935f25c commit c6d07a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Linking.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ The current list of valid `type` codes are:

- `2 / WASM_DATA_SIZE` - Specifies the total size of the static data used by the
module, including both initialized and zero-initialized (bss) data.
Note that this is similar to the "minimum" field in the linear memory
description, however it's in units of bytes, so it's not limited to being
a multiple of the page size.

- `3 / WASM_DATA_ALIGNMENT` - Specifies the alignment of the data section. This
tells the linking what constraints are placed on the location of the data
Expand Down

0 comments on commit c6d07a3

Please sign in to comment.