Expand description
Utilities for working with object files that operate as Wasmtime’s serialization and intermediate format for compiled modules.
Structs§
- Object
Crate Error Wrapper - Workaround to implement
core::error::Error
until gimli-rs/object#747 is settled.
Enums§
Constants§
- EF_
WASMTIME_ COMPONENT - Flag for the
e_flags
field in the ELF header indicating a compiled component. - EF_
WASMTIME_ MODULE - Flag for the
e_flags
field in the ELF header indicating a compiled module. - ELFOSABI_
WASMTIME - Filler for the
os_abi
field of the ELF header. - ELF_
NAME_ DATA - This is the name of the section in the final ELF image which contains a concatenated list of all function names.
- ELF_
WASMTIME_ ADDRMAP - A custom Wasmtime-specific section of our compilation image which stores mapping data from offsets in the image to offset in the original wasm binary.
- ELF_
WASMTIME_ DWARF - This is the name of the section in the final ELF image that contains the concatenation of all the native DWARF information found in the original wasm files.
- ELF_
WASMTIME_ INFO - This is the name of the section in the final ELF image which contains a
bincode
-encodedCompiledModuleInfo
. - ELF_
WASMTIME_ TRAPS - 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.
- ELF_
WASM_ BTI - A custom section which consists of just 1 byte which is either 0 or 1 as to whether BTI is enabled.
- ELF_
WASM_ DATA - This is the name of the section in the final ELF image which contains concatenated data segments from the original wasm module.
- ELF_
WASM_ ENGINE - A bincode-encoded section containing engine-specific metadata used to double-check that an artifact can be loaded into the current host.
- SH_
WASMTIME_ NOT_ EXECUTED - Flag for the
sh_flags
field in the ELF text section that indicates that the text section does not itself need to be executable. This is used for the Pulley target, for example, to indicate that it does not need to be made natively executable as it does not contain actual native code.