Struct goblin::pe::relocation::Relocation [−][src]
#[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
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more