[][src]Struct object::write::Relocation

pub struct Relocation {
    pub offset: u64,
    pub size: u8,
    pub kind: RelocationKind,
    pub encoding: RelocationEncoding,
    pub symbol: SymbolId,
    pub addend: i64,
}

A relocation in an object file.

Fields

offset: u64

The section offset of the place of the relocation.

size: u8

The size in bits of the place of relocation.

kind: RelocationKind

The operation used to calculate the result of the relocation.

encoding: RelocationEncoding

Information about how the result of the relocation operation is encoded in the place.

symbol: SymbolId

The symbol referred to by the relocation.

This may be a section symbol.

addend: i64

The addend to use in the relocation calculation.

This may be in addition to an implicit addend stored at the place of the relocation.

Trait Implementations

impl Debug for Relocation[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> From<T> for T[src]

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