From 83a36e5213fb52324d17e1e575d9170f68b723f9 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Tue, 4 Mar 2025 09:48:33 -0800 Subject: [PATCH] Add `wasm-ld` toolchain implementation 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. --- proposals/custom-page-sizes/Overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proposals/custom-page-sizes/Overview.md b/proposals/custom-page-sizes/Overview.md index 1c9eddfe6..7a5b658d3 100644 --- a/proposals/custom-page-sizes/Overview.md +++ b/proposals/custom-page-sizes/Overview.md @@ -419,7 +419,7 @@ Engines: Toolchains: * [ ] [Binaryen and `wasm-opt`](https://github.com/WebAssembly/binaryen/issues/6873) -* [ ] `wasm-ld` in LLVM +* [x] [`wasm-ld` in LLVM](https://github.com/llvm/llvm-project/pull/128942) * [x] [The Virgil language toolchain](https://github.com/titzer/virgil/pull/272) Binary decoders: