Lines Matching refs:sechdrs
233 static int reloc_insn_adrp(struct module *mod, Elf64_Shdr *sechdrs, in reloc_insn_adrp() argument
249 val = module_emit_veneer_for_adrp(mod, sechdrs, place, val & ~0xfff); in reloc_insn_adrp()
260 int apply_relocate_add(Elf64_Shdr *sechdrs, in apply_relocate_add() argument
272 Elf64_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
274 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
276 loc = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
280 sym = (Elf64_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
406 ovf = reloc_insn_adrp(me, sechdrs, loc, val); in apply_relocate_add()
451 val = module_emit_plt_entry(me, sechdrs, loc, &rel[i], sym); in apply_relocate_add()
479 const Elf_Shdr *sechdrs, in find_section() argument
483 const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_section()
485 for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) { in find_section()
499 const Elf_Shdr *sechdrs, in module_init_ftrace_plt() argument
506 s = find_section(hdr, sechdrs, ".text.ftrace_trampoline"); in module_init_ftrace_plt()
523 const Elf_Shdr *sechdrs, in module_finalize() argument
527 s = find_section(hdr, sechdrs, ".altinstructions"); in module_finalize()
531 return module_init_ftrace_plt(hdr, sechdrs, me); in module_finalize()