Module relocation

Source
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.

Learn more.

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§

ArchivedRelocation
An archived Relocation
Relocation
A record of a relocation to perform.
RelocationResolver
The resolver for an archived Relocation

Enums§

ArchivedRelocationKind
An archived RelocationKind
ArchivedRelocationTarget
An archived RelocationTarget
RelocationKind
Relocation kinds for every ISA.
RelocationKindResolver
The resolver for an archived RelocationKind
RelocationTarget
Destination function. Can be either user function or some special one, like memory.grow.
RelocationTargetResolver
The resolver for an archived RelocationTarget

Traits§

RelocationLike
Any struct that acts like a Relocation.

Type Aliases§

Relocations
Relocations to apply to function bodies.