Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add subsection headers to linking section #231

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Linking.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ The current list of valid `type` codes are:
- `8 / WASM_SYMBOL_TABLE` - Specifies extra information about the symbols present
in the module.

### Segment Info Subsection

For `WASM_SEGMENT_INFO` the following fields are present in the
subsection:

Expand All @@ -246,6 +248,8 @@ The current set of valid flag for segments are:
- `2 / WASM_SEGMENT_FLAG_TLS` - The segment contains thread-local data. This means that a unique copy of this segment will be created for each thread.
- `4 / WASM_SEG_FLAG_RETAIN` - If the object file is included in the final link, the segment should be retained in the final output regardless of whether it is used by the program.

### Init Functions Subsection

For `WASM_INIT_FUNCS` the following fields are present in the
subsection:

Expand All @@ -263,6 +267,8 @@ where an `init_func` is encoded as:

The `WASM_INIT_FUNC` subsection must come after the `WASM_SYMBOL_TABLE` subsection.

### Symbol Table Subsection

For `WASM_SYMBOL_TABLE` the following fields are present in the
subsection:

Expand Down Expand Up @@ -348,6 +354,8 @@ The current set of valid flags for symbols are:
means it's offset is relative to the start of the wasm memory as opposed to
being relative to a data segment.

### COMDAT Info Subsection

For `WASM_COMDAT_INFO` the following fields are present in the
subsection:

Expand Down