rel = (Elf64_Rela *)(elfFile + shdr[i].sh_offset); /* locate .rel.plt and .rel.dyn section */ symtab = (Elf64_Sym *)(elfFile + shdr[shdr[i].sh_link].sh_offset); strtab = (uint8_t *)(elfFile + shdr[shdr[shdr[i].sh_link].sh_link].sh_offset); ...