bjorn3 opened PR #11206 from bjorn3:used_data_object to bytecodealliance:main:
Fixes https://github.com/bytecodealliance/wasmtime/issues/10758
bjorn3 requested abrown for a review on PR #11206.
bjorn3 requested wasmtime-compiler-reviewers for a review on PR #11206.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
I couldn't find what is necessary for Windows.
bjorn3 edited PR review comment.
bjorn3 updated PR #11206.
bjorn3 commented on PR #11206:
Also could this get a backport to the branch for the next Cranelift release. https://github.com/rust-lang/rust/pull/140525 has removed a workaround for
#[used]previously defaulting to#[used(compiler)]rather than#[used(linker)], so without the Cranelift changes,.init_arraysupport in cg_clif is broken with lld.
abrown submitted PR review:
I'm no expert here but this seems reasonable.
abrown merged PR #11206.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
This should have also included
elf::SHF_ALLOC | elf::SHF_WRITE(orelf::SHF_ALLOConly when the data object is neither writable nor contains relocations).
bjorn3 created PR review comment:
And I think this is missing
N_WEAK_REF/N_WEAK_DEFfor weak symbols.
bjorn3 submitted PR review.
Last updated: Dec 06 2025 at 07:03 UTC