• Home
  • Raw
  • Download

Lines Matching refs:sechdrs

73 u64 module_emit_plt_entry(struct module *mod, Elf64_Shdr *sechdrs,  in module_emit_plt_entry()  argument
79 struct plt_entry *plt = (struct plt_entry *)sechdrs[pltsec->plt_shndx].sh_addr; in module_emit_plt_entry()
105 u64 module_emit_veneer_for_adrp(struct module *mod, Elf64_Shdr *sechdrs, in module_emit_veneer_for_adrp() argument
110 struct plt_entry *plt = (struct plt_entry *)sechdrs[pltsec->plt_shndx].sh_addr; in module_emit_veneer_for_adrp()
291 int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, in module_frob_arch_sections() argument
305 if (!strcmp(secstrings + sechdrs[i].sh_name, ".plt")) in module_frob_arch_sections()
307 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".init.plt")) in module_frob_arch_sections()
309 else if (!strcmp(secstrings + sechdrs[i].sh_name, in module_frob_arch_sections()
311 tramp = sechdrs + i; in module_frob_arch_sections()
312 else if (sechdrs[i].sh_type == SHT_SYMTAB) in module_frob_arch_sections()
313 syms = (Elf64_Sym *)sechdrs[i].sh_addr; in module_frob_arch_sections()
326 Elf64_Rela *rels = (void *)ehdr + sechdrs[i].sh_offset; in module_frob_arch_sections()
327 int nents, numrels = sechdrs[i].sh_size / sizeof(Elf64_Rela); in module_frob_arch_sections()
328 Elf64_Shdr *dstsec = sechdrs + sechdrs[i].sh_info; in module_frob_arch_sections()
330 if (sechdrs[i].sh_type != SHT_RELA) in module_frob_arch_sections()
342 sechdrs[i].sh_info); in module_frob_arch_sections()
348 sechdrs[i].sh_info, dstsec); in module_frob_arch_sections()
351 sechdrs[i].sh_info, dstsec); in module_frob_arch_sections()
354 pltsec = sechdrs + mod->arch.core.plt_shndx; in module_frob_arch_sections()
362 pltsec = sechdrs + mod->arch.init.plt_shndx; in module_frob_arch_sections()