WebAssembly / tool-conventions

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

Linking: Add the missing list of segment flags #220

Closed dylanahsmith closed 7 months ago

dylanahsmith commented 8 months ago

Problem

The documentation for the WASM_SEGMENT_INFO subsection includes a flags field, but I didn't see any mention of the flags themselves, yet I found a STRINGS flags being encoded and decoded in practice by both clang and wasm-objdump.

It looks like these are the definitions of these in the header files wabt/common.h and llvm/BinaryFormat/Wasm.h

Solution

I have just listed these flag names along with their values for now, since I didn't want to lead the reader astray by making assumptions about how these flags are used during linking. Feel free to add descriptions if you have more confidence about their purpose, otherwise, I will try to get around adding these later.