Lines Matching refs:i

38 	unsigned int i, r_info, r_addend, _count_relocs;  in count_relocs()  local
43 for (i = 0; i < num; i++) in count_relocs()
45 if (ELF32_R_TYPE(rela[i].r_info) == R_PPC_REL24 && in count_relocs()
46 (r_info != ELF32_R_SYM(rela[i].r_info) || in count_relocs()
47 r_addend != rela[i].r_addend)) { in count_relocs()
49 r_info = ELF32_R_SYM(rela[i].r_info); in count_relocs()
50 r_addend = rela[i].r_addend; in count_relocs()
85 int i; in relaswap() local
90 for (i = 0; i < sizeof(Elf32_Rela) / sizeof(uint32_t); i++) { in relaswap()
91 tmp = x[i]; in relaswap()
92 x[i] = y[i]; in relaswap()
93 y[i] = tmp; in relaswap()
105 unsigned i; in get_plt_size() local
109 for (i = 1; i < hdr->e_shnum; i++) { in get_plt_size()
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()
121 pr_debug("Found relocations in section %u\n", i); 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()
151 unsigned int i; in module_frob_arch_sections() local
154 for (i = 0; i < hdr->e_shnum; i++) { in module_frob_arch_sections()
155 if (strcmp(secstrings + sechdrs[i].sh_name, ".init.plt") == 0) in module_frob_arch_sections()
156 me->arch.init_plt_section = i; in module_frob_arch_sections()
157 else if (strcmp(secstrings + sechdrs[i].sh_name, ".plt") == 0) in module_frob_arch_sections()
158 me->arch.core_plt_section = i; in module_frob_arch_sections()
218 unsigned int i; in apply_relocate_add() local
226 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add()
229 + rela[i].r_offset; in apply_relocate_add()
233 + ELF32_R_SYM(rela[i].r_info); in apply_relocate_add()
235 value = sym->st_value + rela[i].r_addend; in apply_relocate_add()
237 switch (ELF32_R_TYPE(rela[i].r_info)) { in apply_relocate_add()
293 ELF32_R_TYPE(rela[i].r_info)); in apply_relocate_add()