pub fn get_relocate_pairs(
    elf: &ElfFile<'_>,
    elf_base_addr: Option<usize>
) -> Vec<RelocatePair>
Expand description

To parse the elf file and get the relocate pairs

Arguments

  • elf - The elf file
  • elf_base_addr - The base address of the elf file if the file will be loaded to the memory