Skip to content

Add wasm-ld toolchain implementation #39

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

Merged
merged 1 commit into from
Mar 4, 2025
Merged

Add wasm-ld toolchain implementation #39

merged 1 commit into from
Mar 4, 2025

Conversation

fitzgen
Copy link
Collaborator

@fitzgen fitzgen commented Mar 4, 2025

Support for custom page sizes was added via the --page-size=N CLI flag in wasm-ld.

Additionally, wasm-ld defines a __wasm_first_page_end symbol, whose address is the end of the first page, a.k.a. the start of the second page, a.k.a. is the Wasm page size. This allows source files to be written in a page-size-agnostic manner, and for object files to be re-linked with different Wasm page sizes, without needing to recompile the source.

Support for custom page sizes was added via the `--page-size=N` CLI flag in
`wasm-ld`.

Additionally, it defines a `__wasm_first_page_end` symbol, whose address is the
end of the first page, a.k.a. the start of the second page, a.k.a. is the Wasm
page size. This allows source files to be written in a page-size-agnostic
manner, and for object files to be re-linked with different Wasm page sizes,
without needing to recompile the source.
@fitzgen fitzgen merged commit aa7de7b into main Mar 4, 2025
@fitzgen fitzgen deleted the wasm-ld-impl branch March 4, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant