pub enum Reference {
Call,
Data,
}Expand description
What kind of thing a relocation is asking the linker for.
Both are the distance from the end of an instruction to something, which is what every reference this compiler makes is, because it generates position independent code and nothing else. They are told apart because the linker may answer one of them with a stub and may not answer the other one that way.
Variants§
Call
A call, which the linker may satisfy with a stub that reaches further than the four bytes
would. R_X86_64_PLT32 on ELF, and the same relocation a branch gets on the other two.
Data
A datum, reached from the instruction pointer. R_X86_64_PC32 on ELF.
Trait Implementations§
impl Copy for Reference
impl Eq for Reference
impl StructuralPartialEq for Reference
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin for Reference
impl UnsafeUnpin for Reference
impl UnwindSafe for Reference
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.