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:
crate::image::SyntheticModulefor providing external symbol addressescrate::observer::RelocationObserverfor relocation, lifecycle, and runtime binding hooksRelocationEventfor inspecting the current relocation and search scope- binding policy and lazy-fixup support configured through
Relocator
Re-exports§
pub use crate::observer::HandleResult;pub use crate::observer::RelocationEvent;
Structs§
- Relocator
- Reusable configuration for relocating one raw image at a time.
- Relocator
Run - Per-image relocation run state.
Enums§
- Binding
Mode - Binding mode configuration for relocation.
Traits§
- Relocation
Arch - Architecture-specific dynamic relocation numbering.
Functions§
- relocate_
relative - Applies
R_*_RELATIVEentries from a regularREL/RELArelocation table. - relocate_
relr - Applies
RELRcompact relative relocation entries.