Struct object::read::elf::RelocationSections
source · pub struct RelocationSections { /* private fields */ }
Expand description
A mapping from section index to associated relocation sections.
Implementations§
source§impl RelocationSections
impl RelocationSections
sourcepub fn parse<'data, Elf: FileHeader, R: ReadRef<'data>>(
endian: Elf::Endian,
sections: &SectionTable<'data, Elf, R>,
symbol_section: SectionIndex,
) -> Result<Self>
pub fn parse<'data, Elf: FileHeader, R: ReadRef<'data>>( endian: Elf::Endian, sections: &SectionTable<'data, Elf, R>, symbol_section: SectionIndex, ) -> Result<Self>
Create a new mapping using the section table.
Skips relocation sections that do not use the given symbol table section.
sourcepub fn get(&self, index: SectionIndex) -> Option<SectionIndex>
pub fn get(&self, index: SectionIndex) -> Option<SectionIndex>
Given a section index, return the section index of the associated relocation section.
This may also be called with a relocation section index, and it will return the next associated relocation section.
Trait Implementations§
source§impl Debug for RelocationSections
impl Debug for RelocationSections
source§impl Default for RelocationSections
impl Default for RelocationSections
source§fn default() -> RelocationSections
fn default() -> RelocationSections
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RelocationSections
impl RefUnwindSafe for RelocationSections
impl Send for RelocationSections
impl Sync for RelocationSections
impl Unpin for RelocationSections
impl UnwindSafe for RelocationSections
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