Skip to main content

ELF_WASMTIME_TRAPS

Constant ELF_WASMTIME_TRAPS 

Source
pub const ELF_WASMTIME_TRAPS: &str = ".wasmtime.traps";
Expand description

A custom binary-encoded section of wasmtime compilation artifacts which encodes the ability to map an offset in the text section to the trap code that it corresponds to.

This section is used at runtime to determine what flavor of trap happened to ensure that embedders and debuggers know the reason for the wasm trap.

This section’s format is defined by the documentation of the crate::compile::TrapEncodingBuilder data structure, which builds it. It is decoded by lookup_trap_code. Its offsets are relative to the start of the text section.