Repository navigation
WASM/WASI changes to bootstrapper - #135765
Merged
MichalStrehovsky merged 1 commit intoOct 14, 2026
Merged
Conversation
There are issues with the __modules_a/__modules_z trick and we don't really need that in practice. Also, skip registering OS module, we can't register managed code/unbox regions anyway. Co-authored-by: Copilot <[email protected]> Copilot-Session: c78266f3-08e3-4918-b2e5-9fe0ddf2ca17
MichalStrehovsky
temporarily deployed
to
copilot-pat-pool
October 14, 2026 13:53 — with
GitHub Actions
Inactive
MichalStrehovsky
temporarily deployed
to
copilot-pat-pool
October 14, 2026 13:54 — with
GitHub Actions
Inactive
Contributor
|
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara |
|
Azure Pipelines: Successfully started running 3 pipeline(s). 13 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib |
jkotas
approved these changes
Oct 14, 2026
jkotas
reviewed
Oct 14, 2026
This was referenced Oct 14, 2026
Closed
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of a series of pull requests that enable compiling, linking, and running a
Console.WriteLinehello world on WASI/native AOT.Summary
Use the single
__Moduleslot emitted byModulesSectionNodefor Wasm module discovery instead of linker section-boundary symbols. The slot contains the ReadyToRun header pointer, so bootstrap passes its address (&__Module) and a count of one toInitializeModules.Skip
RhRegisterOSModuleon Wasm because the current native code-manager/managed-code/unboxing-range registration is not supported there. Type-manager creation, statics, frozen objects, classlib functions, and module initialization remain intact. Other platforms retain their existing discovery/registration paths.The Wasm path assumes one NativeAOT compilation unit, not one managed assembly; it does not add multi-module or dynamic-linking support.
Validation
.\build.cmd clr.nativeaotruntime -rc Checked -os wasi -arch wasm- passed.These results are from the combined local bringup tree, including prerequisite NativeAOT/Wasm enablement, not a fresh build of this isolated main-based branch. The bootstrap fixtures are local probes, not tests added by this PR.
Note
This PR description was generated by GitHub Copilot.