Skip to content

Commit 6266b3d

Browse files
committed
Address comments
1 parent 744005e commit 6266b3d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Linking.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ The current list of valid `type` codes are:
150150
- `5 / WASM_SEGMENT_INFO` - Extra metadata about the data segments.
151151

152152
- `6 / WASM_INIT_FUNCS` - Specifies a list of constructor functions to be called
153-
at startup by `__wasm_call_ctors` after it initializes memory.
153+
at startup. These constructors will be called in priority order after memory
154+
has been initialized.
154155

155156
- `7 / WASM_COMDAT_INFO` - Specifies the COMDAT groups of associated linking
156157
objects, which are linked only once and all together.
@@ -357,9 +358,10 @@ represented in the object file as Wasm data segments with an associated data
357358
symbol, so each linked data symbol pulls its associated data segment into the
358359
linked output.
359360

360-
Segments are merged according their name and type: segments with a common prefix
361-
such as `.data` or `.rodata` are merged in the output data section, but active
362-
and passive segments are kept separate.
361+
Segments are merged according their type: segments with a common prefix such as
362+
`.data` or `.rodata` are merged into a single segment in the output data
363+
section. It is an error if this behavior would merge shared and unshared
364+
segments.
363365

364366
The output data section is formed, essentially, by concatenating the data
365367
sections of the input files. Since the final location in linear memory of any

0 commit comments

Comments
 (0)