Lines Matching defs:sechdrs
69 u64 module_emit_plt_entry(struct module *mod, Elf64_Shdr *sechdrs,
75 struct plt_entry *plt = (struct plt_entry *)sechdrs[pltsec->plt_shndx].sh_addr;
101 u64 module_emit_veneer_for_adrp(struct module *mod, Elf64_Shdr *sechdrs,
106 struct plt_entry *plt = (struct plt_entry *)sechdrs[pltsec->plt_shndx].sh_addr;
280 int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs,
294 if (!strcmp(secstrings + sechdrs[i].sh_name, ".plt"))
296 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".init.plt"))
298 else if (!strcmp(secstrings + sechdrs[i].sh_name,
300 tramp = sechdrs + i;
301 else if (sechdrs[i].sh_type == SHT_SYMTAB)
302 syms = (Elf64_Sym *)sechdrs[i].sh_addr;
315 Elf64_Rela *rels = (void *)ehdr + sechdrs[i].sh_offset;
316 int nents, numrels = sechdrs[i].sh_size / sizeof(Elf64_Rela);
317 Elf64_Shdr *dstsec = sechdrs + sechdrs[i].sh_info;
319 if (sechdrs[i].sh_type != SHT_RELA)
331 sechdrs[i].sh_info);
337 sechdrs[i].sh_info, dstsec);
340 sechdrs[i].sh_info, dstsec);
343 pltsec = sechdrs + mod->arch.core.plt_shndx;
351 pltsec = sechdrs + mod->arch.init.plt_shndx;