pub struct Reloc {
pub symbol: Symbol,
pub addend: i64,
pub size: u32,
}Expand description
The address of a symbol, written into a global’s image by the linker.
Fields§
§symbol: SymbolThe symbol whose address this is.
addend: i64What to add to that address. &array[2] is the address of array plus eight.
size: u32How many bytes the address occupies, which is the pointer width except where a target has a smaller relocation for it.
Trait Implementations§
impl Copy for Reloc
impl Eq for Reloc
impl StructuralPartialEq for Reloc
Auto Trait Implementations§
impl Freeze for Reloc
impl RefUnwindSafe for Reloc
impl Send for Reloc
impl Sync for Reloc
impl Unpin for Reloc
impl UnsafeUnpin for Reloc
impl UnwindSafe for Reloc
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