Repository navigation
Do not emit MethodAssociatedDataNode on WASM - #135762
Merged
MichalStrehovsky merged 1 commit intoOct 14, 2026
Merged
MichalStrehovsky merged 1 commit into
MichalStrehovsky merged 1 commit into
Conversation
We can't attach metadata to unwinding info, this will require a different mechanism on WASM. Right now this doesn't link because this node uses relative relocs. 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
Contributor
|
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara |
MichalStrehovsky
temporarily deployed
to
copilot-pat-pool
October 14, 2026 13:54 — with
GitHub Actions
Inactive
|
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
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
Make
MethodHasAssociatedDatareturn false for Wasm. The current associated-data format attaches metadata to unwind information and emits relative target pointers, which does not fit the Wasm representation.The observed link failure was an
R_WASM_MEMORY_ADDR_LOCREL_I32relocation targeting a function symbol from an instantiating unboxing stub's associated-data record. A Wasm function pointer is a table index, not a linear-memory-relative address.This suppresses the unsupported metadata for bringup rather than changing its format or pretending a table index is a relative pointer. A future Wasm-specific metadata mechanism is still needed for consumers that require this information.
Validation
.\dotnet.cmd build src\coreclr\tools\aot\ILCompiler\ILCompiler.csproj -c Checked- passed during bringup.These results are from the combined local bringup tree, including prerequisite NativeAOT/Wasm enablement, not a fresh build of this isolated main-based branch. Associated-data-dependent runtime behavior was not validated.
Note
This PR description was generated by GitHub Copilot.