Struct object::read::Relocation
source · pub struct Relocation { /* private fields */ }
Expand description
A relocation entry.
Implementations§
source§impl Relocation
impl Relocation
sourcepub fn kind(&self) -> RelocationKind
pub fn kind(&self) -> RelocationKind
The operation used to calculate the result of the relocation.
sourcepub fn encoding(&self) -> RelocationEncoding
pub fn encoding(&self) -> RelocationEncoding
Information about how the result of the relocation operation is encoded in the place.
sourcepub fn size(&self) -> u8
pub fn size(&self) -> u8
The size in bits of the place of the relocation.
If 0, then the size is determined by the relocation kind.
sourcepub fn target(&self) -> RelocationTarget
pub fn target(&self) -> RelocationTarget
The target of the relocation.
sourcepub fn set_addend(&mut self, addend: i64)
pub fn set_addend(&mut self, addend: i64)
Set the addend to use in the relocation calculation.
sourcepub fn has_implicit_addend(&self) -> bool
pub fn has_implicit_addend(&self) -> bool
Returns true if there is an implicit addend stored in the data at the offset to be relocated.