[][src]Enum cranelift_codegen::binemit::Reloc

pub enum Reloc {
    Abs4,
    Abs8,
    X86PCRel4,
    X86PCRelRodata4,
    X86CallPCRel4,
    X86CallPLTRel4,
    X86GOTPCRel4,
    Arm32Call,
    Arm64Call,
    RiscvCall,
}

Relocation kinds for every ISA

Variants

Abs4

absolute 4-byte

Abs8

absolute 8-byte

X86PCRel4

x86 PC-relative 4-byte

X86PCRelRodata4

x86 PC-relative 4-byte offset to trailing rodata

X86CallPCRel4

x86 call to PC-relative 4-byte

X86CallPLTRel4

x86 call to PLT-relative 4-byte

X86GOTPCRel4

x86 GOT PC-relative 4-byte

Arm32Call

Arm32 call target

Arm64Call

Arm64 call target

RiscvCall

RISC-V call target

Trait Implementations

impl Debug for Reloc[src]

impl Display for Reloc[src]

fn fmt(&self, f: &mut Formatter) -> Result[src]

Display trait implementation drops the arch, since its used in contexts where the arch is already unambiguous, e.g. clif syntax with isa specified. In other contexts, use Debug.

impl PartialEq<Reloc> for Reloc[src]

impl Eq for Reloc[src]

impl Copy for Reloc[src]

impl Clone for Reloc[src]

Auto Trait Implementations

impl Unpin for Reloc

impl Send for Reloc

impl Sync for Reloc

impl RefUnwindSafe for Reloc

impl UnwindSafe for Reloc

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]