diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2024-02-22 08:12:09 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2024-02-23 13:13:01 -0800 |
| commit | 646e8e729168d95dbb65ee2d27cd00d2f0ece846 (patch) | |
| tree | 06eaa2162a6f82527066ad4a84af0718f02b5dab /tests/rustdoc-js-std/parser-slice-array.js | |
| parent | 2dbd6233ccdb2cd4b621a5e839a95c3fbbc0c375 (diff) | |
| download | rust-646e8e729168d95dbb65ee2d27cd00d2f0ece846.tar.gz rust-646e8e729168d95dbb65ee2d27cd00d2f0ece846.zip | |
rustc: Fix wasm64 metadata object files
It looks like LLD will detect object files being either 32 or 64-bit depending on any memory present. LLD will additionally reject 32-bit objects during a 64-bit link. Previously metadata objects did not have any memories in them which led LLD to conclude they were 32-bit objects which broke 64-bit targets for wasm. This commit fixes this by ensuring that for 64-bit targets there's a memory object present to get LLD to detect it's a 64-bit target. Additionally this commit moves away from a hand-crafted wasm encoder to the `wasm-encoder` crate on crates.io as the complexity grows for the generated object file. Closes #121460
Diffstat (limited to 'tests/rustdoc-js-std/parser-slice-array.js')
0 files changed, 0 insertions, 0 deletions
