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 with Relocator, pass the raw image to Relocator::run, then call relocate().

This module exposes the main customization points used during relocation:

Re-exports§

pub use crate::observer::HandleResult;
pub use crate::observer::RelocationEvent;

Structs§

Relocator
Reusable configuration for relocating one raw image at a time.
RelocatorRun
Per-image relocation run state.

Enums§

BindingMode
Binding mode configuration for relocation.

Traits§

RelocationArch
Architecture-specific dynamic relocation numbering.

Functions§

relocate_relative
Applies R_*_RELATIVE entries from a regular REL/RELA relocation table.
relocate_relr
Applies RELR compact relative relocation entries.