yurydelendik opened PR #2157 from libcalls-wasmtime
to main
:
We don't have listed all Libcalls in the
for_each_libcall
at the moment. (And I noticedLibcall::Probestack
reloc record in one of the large WASI programs)This patch:
- [x] removes for_each_libcall macro from the obj crate
- [x] adds __assert_all_for_each_libcalls to catch missing Libcall (and warns for duplicate)
- [x] Implement wasmtime_memXXX and stub rest
Not sure what are the plans. Can we use stuff from the compiler-builtins crate here?
bjorn3 submitted PR Review.
bjorn3 submitted PR Review.
bjorn3 created PR Review Comment:
This can be
unreachable!()
. Wasmtime doesn't use TLS in the jitted code.
bjorn3 created PR Review Comment:
You would have to use something like
extern "C" { #[linkage_name = "__rust_probestack"] fn wasmtime_probestack(); }
. The abi of probestack is incompatible with C, so using a wrapper function with abi C won't work.
alexcrichton submitted PR Review.
alexcrichton submitted PR Review.
alexcrichton created PR Review Comment:
Could this actually get removed since I don't think it's used anywhere any more?
alexcrichton created PR Review Comment:
Out of curiosity, where do these get generated in cranelift?
bjorn3 submitted PR Review.
bjorn3 created PR Review Comment:
I assume they will be generated when implementing the bulk memory wasm proposal.
yurydelendik submitted PR Review.
yurydelendik created PR Review Comment:
FWIW I'm getting
Libcall::Probestack
relocation entries in large code base. (I'll find out where exactly it is coming from.)
alexcrichton closed without merge PR #2157.
alexcrichton commented on PR #2157:
This PR is pretty old in Wasmtime now and would need a good bit of rebasing to get it applying again. Enough time has passed as well that enough has changed under the hood, so I'm going to close this
Last updated: Dec 23 2024 at 12:05 UTC