#[repr(C)]pub struct Rela64<E: Endian> {
pub r_offset: U64<E>,
pub r_info: U64<E>,
pub r_addend: I64<E>,
}
Expand description
Relocation table entry with explicit addend.
Fields§
§r_offset: U64<E>
Relocation address.
r_info: U64<E>
Relocation type and symbol index.
r_addend: I64<E>
Explicit addend.
Implementations§
source§impl<E: Endian> Rela64<E>
impl<E: Endian> Rela64<E>
sourcepub fn r_sym(&self, endian: E, is_mips64el: bool) -> u32
pub fn r_sym(&self, endian: E, is_mips64el: bool) -> u32
Get the r_sym
component of the r_info
field.
sourcepub fn r_type(&self, endian: E, is_mips64el: bool) -> u32
pub fn r_type(&self, endian: E, is_mips64el: bool) -> u32
Get the r_type
component of the r_info
field.
sourcepub fn r_info(endian: E, is_mips64el: bool, r_sym: u32, r_type: u32) -> U64<E>
pub fn r_info(endian: E, is_mips64el: bool, r_sym: u32, r_type: u32) -> U64<E>
Calculate the r_info
field given the r_sym
and r_type
components.
sourcepub fn set_r_info(&mut self, endian: E, is_mips64el: bool, r_sym: u32, r_type: u32)
pub fn set_r_info(&mut self, endian: E, is_mips64el: bool, r_sym: u32, r_type: u32)
Set the r_info
field given the r_sym
and r_type
components.