Lines Matching refs:sechdrs
100 const Elf32_Shdr *sechdrs, in get_plt_size() argument
112 if ((strstr(secstrings + sechdrs[i].sh_name, ".init") != 0) in get_plt_size()
117 if (strstr(secstrings + sechdrs[i].sh_name, ".debug") != 0) in get_plt_size()
120 if (sechdrs[i].sh_type == SHT_RELA) { in get_plt_size()
123 (void *)hdr + sechdrs[i].sh_offset, in get_plt_size()
124 sechdrs[i].sh_size / sizeof(Elf32_Rela)); in get_plt_size()
131 sort((void *)hdr + sechdrs[i].sh_offset, in get_plt_size()
132 sechdrs[i].sh_size / sizeof(Elf32_Rela), in get_plt_size()
136 + sechdrs[i].sh_offset, in get_plt_size()
137 sechdrs[i].sh_size in get_plt_size()
147 Elf32_Shdr *sechdrs, in module_frob_arch_sections() argument
155 if (strcmp(secstrings + sechdrs[i].sh_name, ".init.plt") == 0) in module_frob_arch_sections()
157 else if (strcmp(secstrings + sechdrs[i].sh_name, ".plt") == 0) in module_frob_arch_sections()
166 sechdrs[me->arch.core_plt_section].sh_size in module_frob_arch_sections()
167 = get_plt_size(hdr, sechdrs, secstrings, 0); in module_frob_arch_sections()
168 sechdrs[me->arch.init_plt_section].sh_size in module_frob_arch_sections()
169 = get_plt_size(hdr, sechdrs, secstrings, 1); in module_frob_arch_sections()
184 Elf32_Shdr *sechdrs, in do_plt_call() argument
193 entry = (void *)sechdrs[mod->arch.core_plt_section].sh_addr; in do_plt_call()
195 entry = (void *)sechdrs[mod->arch.init_plt_section].sh_addr; in do_plt_call()
212 int apply_relocate_add(Elf32_Shdr *sechdrs, in apply_relocate_add() argument
219 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
225 sechdrs[relsec].sh_info); in apply_relocate_add()
226 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add()
228 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
232 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
265 sechdrs, module); in apply_relocate_add()
301 sechdrs, module); in apply_relocate_add()