Expand description
This module defines the Relocation
trait and several utilities for implementing relocations.
Structs§
- Impossible
Relocation - Error returned when encoding a relocation failed
Enums§
- Relocation
Kind - Specifies what kind of relocation a relocation is.
- Relocation
Size - A descriptor for the size of a relocation. This also doubles as a relocation itself
for relocations in data directives. Can be converted to relocations of any kind of architecture
using
Relocation::from_size
.
Traits§
- Relocation
- Used to inform assemblers on how to implement relocations for each architecture. When implementing a new architecture, one simply has to implement this trait for the architecture’s relocation definition.