Struct goblin::pe::relocation::Relocation
source · [−]#[repr(C)]pub struct Relocation {
pub virtual_address: u32,
pub symbol_table_index: u32,
pub typ: u16,
}
Expand description
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
sourceimpl Clone for Relocation
impl Clone for Relocation
sourcefn clone(&self) -> Relocation
fn clone(&self) -> Relocation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Relocation
impl Debug for Relocation
sourceimpl Default for Relocation
impl Default for Relocation
sourcefn default() -> Relocation
fn default() -> Relocation
Returns the “default value” for a type. Read more
sourceimpl<'a> IntoCtx<Endian, [u8]> for &'a Relocation
impl<'a> IntoCtx<Endian, [u8]> for &'a Relocation
sourceimpl PartialEq<Relocation> for Relocation
impl PartialEq<Relocation> for Relocation
sourcefn eq(&self, other: &Relocation) -> bool
fn eq(&self, other: &Relocation) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Relocation) -> bool
fn ne(&self, other: &Relocation) -> bool
This method tests for !=
.
sourceimpl<'a> TryFromCtx<'a, Endian, [u8]> for Relocation where
Relocation: 'a,
impl<'a> TryFromCtx<'a, Endian, [u8]> for Relocation where
Relocation: 'a,
sourceimpl<'a> TryIntoCtx<Endian, [u8]> for &'a Relocation
impl<'a> TryIntoCtx<Endian, [u8]> for &'a Relocation
sourceimpl TryIntoCtx<Endian, [u8]> for Relocation
impl TryIntoCtx<Endian, [u8]> for Relocation
impl Copy for Relocation
impl StructuralPartialEq for Relocation
Auto Trait Implementations
impl RefUnwindSafe for Relocation
impl Send for Relocation
impl Sync for Relocation
impl Unpin for Relocation
impl UnwindSafe for Relocation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more