Enum dynasmrt::relocations::RelocationKind [−][src]
pub enum RelocationKind {
Relative,
AbsToRel,
RelToAbs,
}
Expand description
Specifies what kind of relocation a relocation is.
Variants
A simple, PC-relative relocation. These can be encoded once and do not need to be adjusted when the executable buffer is moved.
An absolute relocation to a relative address, i.e. trying to put the address of a dynasm x86 function in a register This means adjustment is necessary when the executable buffer is moved
A relative relocation to an absolute address, i.e. trying to call a rust function with a dynasm x86 call. This means adjustment is necessary when the executable buffer is moved
Implementations
Converts back from numeric value to RelocationKind
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RelocationKind
impl Send for RelocationKind
impl Sync for RelocationKind
impl Unpin for RelocationKind
impl UnwindSafe for RelocationKind
Blanket Implementations
Mutably borrows from an owned value. Read more