* Handle select relocations while generating trampolines Trampoline generation for all function signatures exposed a preexisting bug in wasmtime where trampoline generation occasionally does have relocations, but it's asserted that trampolines don't generate relocations, causing a panic. The relocation is currently primarily the probestack function which happens when functions might have a huge number of parameters, but not so huge as to blow the wasmparser limit of how many parameters are allowed. This commit fixes the issue by handling relocations for trampolines in the same manner as the rest of the code. Note that dynamically-generated trampolines via the `Func` API still panic if they have too many arguments and generate a relocation, but it seems like we can try to fix that later if the need truly arises. Closes #1322 * Log trampoline relocations
40 lines
1.5 KiB
TOML
40 lines
1.5 KiB
TOML
[package]
|
|
name = "wasmtime-jit"
|
|
version = "0.12.0"
|
|
authors = ["The Wasmtime Project Developers"]
|
|
description = "JIT-style execution for WebAsssembly code in Cranelift"
|
|
license = "Apache-2.0 WITH LLVM-exception"
|
|
categories = ["wasm"]
|
|
keywords = ["webassembly", "wasm"]
|
|
repository = "https://github.com/bytecodealliance/wasmtime"
|
|
readme = "README.md"
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
cranelift-codegen = { path = "../../cranelift/codegen", version = "0.60.0", features = ["enable-serde"] }
|
|
cranelift-entity = { path = "../../cranelift/entity", version = "0.60.0", features = ["enable-serde"] }
|
|
cranelift-wasm = { path = "../../cranelift/wasm", version = "0.60.0", features = ["enable-serde"] }
|
|
cranelift-native = { path = "../../cranelift/native", version = "0.60.0" }
|
|
cranelift-frontend = { path = "../../cranelift/frontend", version = "0.60.0" }
|
|
wasmtime-environ = { path = "../environ", version = "0.12.0" }
|
|
wasmtime-runtime = { path = "../runtime", version = "0.12.0" }
|
|
wasmtime-debug = { path = "../debug", version = "0.12.0" }
|
|
wasmtime-profiling = { path = "../profiling", version = "0.12.0" }
|
|
region = "2.0.0"
|
|
thiserror = "1.0.4"
|
|
target-lexicon = { version = "0.10.0", default-features = false }
|
|
wasmparser = "0.51.2"
|
|
more-asserts = "0.2.1"
|
|
anyhow = "1.0"
|
|
cfg-if = "0.1.9"
|
|
log = "0.4"
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
winapi = { version = "0.3.7", features = ["winnt", "impl-default"] }
|
|
|
|
[features]
|
|
lightbeam = ["wasmtime-environ/lightbeam"]
|
|
|
|
[badges]
|
|
maintenance = { status = "actively-developed" }
|