Lines Matching refs:sechdrs
199 int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, in module_frob_arch_sections() argument
213 if (!strcmp(secstrings + sechdrs[i].sh_name, ".plt")) in module_frob_arch_sections()
214 mod->arch.core.plt = sechdrs + i; in module_frob_arch_sections()
215 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".init.plt")) in module_frob_arch_sections()
216 mod->arch.init.plt = sechdrs + i; in module_frob_arch_sections()
218 !strcmp(secstrings + sechdrs[i].sh_name, in module_frob_arch_sections()
220 tramp = sechdrs + i; in module_frob_arch_sections()
221 else if (sechdrs[i].sh_type == SHT_SYMTAB) in module_frob_arch_sections()
222 syms = (Elf64_Sym *)sechdrs[i].sh_addr; in module_frob_arch_sections()
235 Elf64_Rela *rels = (void *)ehdr + sechdrs[i].sh_offset; in module_frob_arch_sections()
236 int numrels = sechdrs[i].sh_size / sizeof(Elf64_Rela); in module_frob_arch_sections()
237 Elf64_Shdr *dstsec = sechdrs + sechdrs[i].sh_info; in module_frob_arch_sections()
239 if (sechdrs[i].sh_type != SHT_RELA) in module_frob_arch_sections()
251 sechdrs[i].sh_info, dstsec); in module_frob_arch_sections()
254 sechdrs[i].sh_info, dstsec); in module_frob_arch_sections()