File tree 1 file changed +6
-4
lines changed 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,8 @@ The current list of valid `type` codes are:
150
150
- ` 5 / WASM_SEGMENT_INFO ` - Extra metadata about the data segments.
151
151
152
152
- ` 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.
154
155
155
156
- ` 7 / WASM_COMDAT_INFO ` - Specifies the COMDAT groups of associated linking
156
157
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
357
358
symbol, so each linked data symbol pulls its associated data segment into the
358
359
linked output.
359
360
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.
363
365
364
366
The output data section is formed, essentially, by concatenating the data
365
367
sections of the input files. Since the final location in linear memory of any
You can’t perform that action at this time.
0 commit comments