Expand description
Relocation is the process of assigning load addresses for position-dependent code and data of a program and adjusting the code and data to reflect the assigned addresses.
Each time a Compiler
compiles a WebAssembly function (into machine code),
it also attaches if there are any relocations that need to be patched into
the generated machine code, so a given frontend (JIT or native) can
do the corresponding work to run it.
Structs§
- Archived
Relocation - An archived
Relocation
- Relocation
- A record of a relocation to perform.
- Relocation
Resolver - The resolver for an archived
Relocation
Enums§
- Archived
Relocation Kind - An archived
RelocationKind
- Archived
Relocation Target - An archived
RelocationTarget
- Relocation
Kind - Relocation kinds for every ISA.
- Relocation
Kind Resolver - The resolver for an archived
RelocationKind
- Relocation
Target - Destination function. Can be either user function or some special one, like
memory.grow
. - Relocation
Target Resolver - The resolver for an archived
RelocationTarget
Traits§
- Relocation
Like - Any struct that acts like a
Relocation
.
Type Aliases§
- Relocations
- Relocations to apply to function bodies.