Lines Matching refs:sechdrs
73 const Elf32_Shdr *sechdrs, in get_plt_size() argument
85 if ((strstr(secstrings + sechdrs[i].sh_name, ".init") != NULL) in get_plt_size()
90 if (strstr(secstrings + sechdrs[i].sh_name, ".debug")) in get_plt_size()
93 if (sechdrs[i].sh_type == SHT_RELA) { in get_plt_size()
96 (void *)hdr + sechdrs[i].sh_offset, in get_plt_size()
97 sechdrs[i].sh_size / sizeof(Elf32_Rela)); in get_plt_size()
104 sort((void *)hdr + sechdrs[i].sh_offset, in get_plt_size()
105 sechdrs[i].sh_size / sizeof(Elf32_Rela), in get_plt_size()
109 + sechdrs[i].sh_offset, in get_plt_size()
110 sechdrs[i].sh_size in get_plt_size()
120 Elf32_Shdr *sechdrs, in module_frob_arch_sections() argument
128 if (strcmp(secstrings + sechdrs[i].sh_name, ".init.plt") == 0) in module_frob_arch_sections()
130 else if (strcmp(secstrings + sechdrs[i].sh_name, ".plt") == 0) in module_frob_arch_sections()
139 sechdrs[me->arch.core_plt_section].sh_size in module_frob_arch_sections()
140 = get_plt_size(hdr, sechdrs, secstrings, 0); in module_frob_arch_sections()
141 sechdrs[me->arch.init_plt_section].sh_size in module_frob_arch_sections()
142 = get_plt_size(hdr, sechdrs, secstrings, 1); in module_frob_arch_sections()
158 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()
186 int apply_relocate_add(Elf32_Shdr *sechdrs, in apply_relocate_add() argument
193 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
199 sechdrs[relsec].sh_info); in apply_relocate_add()
200 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add()
202 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
206 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
239 sechdrs, module); in apply_relocate_add()
276 int module_finalize_ftrace(struct module *module, const Elf_Shdr *sechdrs) in module_finalize_ftrace() argument
280 sechdrs, module); in module_finalize_ftrace()