[][src]Struct goblin::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 PartialEq<Relocation> for Relocation[src]

impl Copy for Relocation[src]

impl Default for Relocation[src]

impl Clone for Relocation[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Relocation[src]

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

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

type Error = Error

type Size = usize

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

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

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

type Error = Error

type Size = usize

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

type Error = Error

type Size = usize

impl SizeWith<Endian> for Relocation[src]

type Units = usize

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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