Skip to main content

Module relocation

Module relocation 

Source
Expand description

Relocation configuration, symbol scopes, and binding policy.

Raw images returned by crate::Loader become executable through the relocation pipeline. In practice, most users configure that pipeline through the builder returned by .relocator(), then call relocate().

This module exposes the main customization points used during relocation:

Structs§

EmuContext
Image context visible to an emulator.
EmuRelocationContext
Relocation-specific context visible to an emulator.
RelocationContext
Context passed to RelocationHandler::handle.
Relocator
A builder for configuring and executing relocation.
TlsDescEmuRequest
Input data for an emulated TLSDESC relocation.
TlsDescEmuValue
Two-word TLSDESC value produced by an emulator.

Enums§

BindingMode
Binding mode configuration for relocation.
HandleResult
A trait for intercepting relocations during relocation.

Traits§

EmulatedArch
Marker for non-native target architectures that may be driven through an emulator.
Emulator
Guest execution hooks used while relocating a non-native image.
RelocationArch
Architecture-specific dynamic relocation numbering.
RelocationHandler
Hook trait for observing or overriding relocation processing.