Enum wasmtime_environ::ir::Reloc[][src]

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

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. Encoded as bottom 26 bits of instruction. This value is sign-extended, multiplied by 4, and added to the PC of the call instruction to form the destination address.

RiscvCall

RISC-V call target

ElfX86_64TlsGd

Elf x86_64 32 bit signed PC relative offset to two GOT entries for GD symbol.

MachOX86_64Tlv

Mach-O x86_64 32 bit signed PC relative offset to a __thread_vars entry.

Trait Implementations

impl Clone for Reloc[src]

impl Copy for Reloc[src]

impl Debug for Reloc[src]

impl<'de> Deserialize<'de> for Reloc[src]

impl Display for Reloc[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[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 Eq for Reloc[src]

impl PartialEq<Reloc> for Reloc[src]

impl Serialize for Reloc[src]

impl StructuralEq for Reloc[src]

impl StructuralPartialEq for Reloc[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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]

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> 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.