Lines Matching refs:sechdrs
74 const Elf32_Shdr *sechdrs, in get_plt_size() argument
86 if ((strstr(secstrings + sechdrs[i].sh_name, ".init") != NULL) in get_plt_size()
91 if (strstr(secstrings + sechdrs[i].sh_name, ".debug")) in get_plt_size()
94 if (sechdrs[i].sh_type == SHT_RELA) { in get_plt_size()
97 (void *)hdr + sechdrs[i].sh_offset, in get_plt_size()
98 sechdrs[i].sh_size / sizeof(Elf32_Rela)); in get_plt_size()
105 sort((void *)hdr + sechdrs[i].sh_offset, in get_plt_size()
106 sechdrs[i].sh_size / sizeof(Elf32_Rela), in get_plt_size()
110 + sechdrs[i].sh_offset, in get_plt_size()
111 sechdrs[i].sh_size in get_plt_size()
121 Elf32_Shdr *sechdrs, in module_frob_arch_sections() argument
129 if (strcmp(secstrings + sechdrs[i].sh_name, ".init.plt") == 0) in module_frob_arch_sections()
131 else if (strcmp(secstrings + sechdrs[i].sh_name, ".plt") == 0) in module_frob_arch_sections()
140 sechdrs[me->arch.core_plt_section].sh_size in module_frob_arch_sections()
141 = get_plt_size(hdr, sechdrs, secstrings, 0); in module_frob_arch_sections()
142 sechdrs[me->arch.init_plt_section].sh_size in module_frob_arch_sections()
143 = get_plt_size(hdr, sechdrs, secstrings, 1); in module_frob_arch_sections()
159 const Elf32_Shdr *sechdrs, in do_plt_call() argument
167 entry = (void *)sechdrs[mod->arch.core_plt_section].sh_addr; in do_plt_call()
169 entry = (void *)sechdrs[mod->arch.init_plt_section].sh_addr; in do_plt_call()
196 int apply_relocate_add(Elf32_Shdr *sechdrs, in apply_relocate_add() argument
203 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
209 sechdrs[relsec].sh_info); in apply_relocate_add()
210 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add()
212 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
216 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
248 sechdrs, module); in apply_relocate_add()
322 int module_finalize_ftrace(struct module *module, const Elf_Shdr *sechdrs) in module_finalize_ftrace() argument
326 sechdrs, module); in module_finalize_ftrace()
333 sechdrs, module); in module_finalize_ftrace()