Lines Matching defs:sechdrs
23 * @sechdrs - pointer to elf load section headers
27 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
37 secstrings + sechdrs[i].sh_name);
38 if (strcmp(secstrings + sechdrs[i].sh_name, ".plt") == 0)
40 if (strcmp(secstrings + sechdrs[i].sh_name, ".got.plt") == 0)
42 if (strcmp(secstrings + sechdrs[i].sh_name, ".rela.plt") == 0)
59 * @sechdrs - pointer to section headers
67 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab,
75 unsigned int nrelocs = sechdrs[relsec].sh_size / sizeof(Elf32_Rela);
76 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr;
77 Elf32_Word sym_info = sechdrs[relsec].sh_info;
78 Elf32_Sym *sym_base = (Elf32_Sym *) sechdrs[symindex].sh_addr;
79 void *loc_base = (void *) sechdrs[sym_info].sh_addr;