pub struct DwarfTextReloc {
pub offset: u32,
pub size: u8,
}Expand description
A relocation a .debug_* section needs against the .text symbol so a host
linker fixes up the embedded .text address when .text is placed. REL
form: the in-place bytes already hold the addend (always 0 for our
text-base references), so only the site (offset) and size travel here.
Fields§
§offset: u32Byte offset within the section where the relocated address word sits.
size: u8Size of the relocated value (always 4 for DWARF32 addresses).
Trait Implementations§
Source§impl Clone for DwarfTextReloc
impl Clone for DwarfTextReloc
Source§fn clone(&self) -> DwarfTextReloc
fn clone(&self) -> DwarfTextReloc
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DwarfTextReloc
Source§impl Debug for DwarfTextReloc
impl Debug for DwarfTextReloc
impl Eq for DwarfTextReloc
Source§impl PartialEq for DwarfTextReloc
impl PartialEq for DwarfTextReloc
Source§fn eq(&self, other: &DwarfTextReloc) -> bool
fn eq(&self, other: &DwarfTextReloc) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DwarfTextReloc
Auto Trait Implementations§
impl Freeze for DwarfTextReloc
impl RefUnwindSafe for DwarfTextReloc
impl Send for DwarfTextReloc
impl Sync for DwarfTextReloc
impl Unpin for DwarfTextReloc
impl UnsafeUnpin for DwarfTextReloc
impl UnwindSafe for DwarfTextReloc
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.