[][src]Struct metagoblin::pe::relocation::Relocation

#[repr(C)]pub struct Relocation {
    pub virtual_address: u32,
    pub symbol_table_index: u32,
    pub typ: u16,
}

A COFF relocation.

Fields

virtual_address: u32

The address of the item to which relocation is applied.

This is the offset from the beginning of the section, plus the value of the section's virtual_address field.

symbol_table_index: u32

A zero-based index into the symbol table.

This symbol gives the address that is to be used for the relocation. If the specified symbol has section storage class, then the symbol's address is the address with the first section of the same name.

typ: u16

A value that indicates the kind of relocation that should be performed.

Valid relocation types depend on machine type.

Trait Implementations

impl Clone for Relocation[src]

impl Copy for Relocation[src]

impl Debug for Relocation[src]

impl Default for Relocation[src]

impl FromCtx<Endian, [u8]> for Relocation[src]

impl<'a> IntoCtx<Endian, [u8]> for &'a Relocation[src]

impl IntoCtx<Endian, [u8]> for Relocation[src]

impl PartialEq<Relocation> for Relocation[src]

impl SizeWith<Endian> for Relocation[src]

impl StructuralPartialEq for Relocation[src]

impl<'a> TryFromCtx<'a, Endian, [u8]> for Relocation where
    Relocation: 'a, 
[src]

type Error = Error

impl TryIntoCtx<Endian, [u8]> for Relocation[src]

type Error = Error

impl<'a> TryIntoCtx<Endian, [u8]> for &'a Relocation[src]

type Error = Error

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.