WebAssembly / tool-conventions

Conventions supporting interoperatibility between tools working with WebAssembly.
Artistic License 2.0
302 stars 67 forks source link

Error in WASM_INIT_FUNCS docs #137

Open theidiotmachine opened 4 years ago

theidiotmachine commented 4 years ago

Hey. The WASM_INIT_FUNCS linker subsection is documented as being a count and then a 'sequence of symbol indices'. However, the latest implementation of wasm-lld reads pairs of varuint32s; the first as a priority, the second the symbol index, here.

I think this came from this which describes such a schema.

It means that if you follow this spec, the linker will reject you, so I take it this is an error in this doc?

sbc100 commented 4 years ago

Yup, looks like that docs need an update.