Struct object::read::elf::RelocationSections [−][src]
pub struct RelocationSections { /* fields omitted */ }
A mapping from section index to associated relocation sections.
Implementations
impl RelocationSections
[src]
impl RelocationSections
[src]pub fn parse<Elf: FileHeader>(
endian: Elf::Endian,
sections: &SectionTable<'_, Elf>,
symbol_section: usize
) -> Result<Self>
[src]
endian: Elf::Endian,
sections: &SectionTable<'_, Elf>,
symbol_section: usize
) -> Result<Self>
Create a new mapping using the section table.
Skips relocation sections that do not use the given symbol table section.
pub fn get(&self, index: usize) -> Option<usize>
[src]
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.