#[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§
Source§impl Clone for Relocation
impl Clone for Relocation
Source§fn clone(&self) -> Relocation
fn clone(&self) -> Relocation
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Relocation
impl Debug for Relocation
Source§impl Default for Relocation
impl Default for Relocation
Source§fn default() -> Relocation
fn default() -> Relocation
Returns the “default value” for a type. Read more
Source§impl<'a> IntoCtx<Endian> for &'a Relocation
impl<'a> IntoCtx<Endian> for &'a Relocation
Source§impl PartialEq for Relocation
impl PartialEq for Relocation
Source§impl<'a> TryFromCtx<'a, Endian> for Relocationwhere
Relocation: 'a,
impl<'a> TryFromCtx<'a, Endian> for Relocationwhere
Relocation: 'a,
Source§impl<'a> TryIntoCtx<Endian> for &'a Relocation
impl<'a> TryIntoCtx<Endian> for &'a Relocation
Source§impl TryIntoCtx<Endian> for Relocation
impl TryIntoCtx<Endian> for Relocation
impl Copy for Relocation
impl StructuralPartialEq for Relocation
Auto Trait Implementations§
impl Freeze for Relocation
impl RefUnwindSafe for Relocation
impl Send for Relocation
impl Sync for Relocation
impl Unpin for Relocation
impl UnwindSafe for Relocation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)