feat(wasm-aot): translate relinked executables to WebAssembly #9096
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9096"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by SteelCrab on 2026-10-21T12:08:49Z.
What
Add
core/wasm-aot, a Rust translator from relinked x86-64 ELF images to WebAssembly memory64, including relocation/import binding, control flow, integer/SIMD/x87 operations, TLS, guest callbacks and runtime indirect-call patching.Add synthetic executable fixtures with native and Unicorn CPU oracles and a dedicated Rust CI job. Unsupported instructions fail translation by default; diagnostic
--allow-unsupportedmode reports them and emits traps. Known limits are recorded indocs/dev/debt/wasm-aot.md.Extracted prerequisite of #6879. The dependency chain records the requested landing order; the translator and its synthetic tests build directly on main. #10017 is needed when relinker output contains imported data. The two optional Emscripten runtime fixtures are staged here so the later runtime PR does not need translator-source changes.
Tested
Ubuntu 26.04.1 x86-64, GCC 15.2, Clang/libclang 21.1.8, Rust 1.98.0; based on main
47fa6eecf8e7124c88d26ccc37056c13713f7143.cargo test --release --locked --manifest-path core/wasm-aot/Cargo.toml -- --nocapture: 98 passed, 0 failed, 5 explicitly ignored.emscripten-runtimejob will explicitly execute both runtime cases with--ignoredafter its prerequisites merge.rust-translatorinstalls Clang/libclang and Rust 1.98.0, then runs the same complete asset-independent release/locked test command. The fork workflow needs approval; remote CI is not claimed as passing.The runtime integration #6879 is temporarily closed. Prerequisites now land one at a time within the contributor open-PR limit, beginning with #10017, which replaces #8899. This PR remains closed while its prerequisites land.
Remote status: Conventions passed. This prerequisite remains closed while its dependencies land in the sequential staging plan. No remote Rust build/test result is claimed. The passing build and test counts above are local results.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T12:09:08Z.
Thank you for your contribution! Authors with no pull requests merged into
maincan have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.Pull request closed