pub struct AppliedRelocation {
pub offset: usize,
pub size: u8,
pub label: String,
pub kind: RelocKind,
pub addend: i64,
}Expand description
An applied relocation in the final output — describes where a label reference was patched. Useful for tooling, debugging, and re-linking.
Fields§
§offset: usizeOffset in the output byte stream where the value was written.
size: u8Size of the relocated value in bytes (1, 2, 4, or 8).
label: StringTarget label name.
kind: RelocKindHow the linker patches the target address into the instruction bytes.
addend: i64Addend.
Trait Implementations§
Source§impl Clone for AppliedRelocation
impl Clone for AppliedRelocation
Source§fn clone(&self) -> AppliedRelocation
fn clone(&self) -> AppliedRelocation
Returns a duplicate 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 AppliedRelocation
impl Debug for AppliedRelocation
Source§impl PartialEq for AppliedRelocation
impl PartialEq for AppliedRelocation
impl Eq for AppliedRelocation
impl StructuralPartialEq for AppliedRelocation
Auto Trait Implementations§
impl Freeze for AppliedRelocation
impl RefUnwindSafe for AppliedRelocation
impl Send for AppliedRelocation
impl Sync for AppliedRelocation
impl Unpin for AppliedRelocation
impl UnwindSafe for AppliedRelocation
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