Lines Matching refs:sechdrs

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