Lines Matching refs:sechdrs
99 int apply_relocate(Elf32_Shdr *sechdrs, in apply_relocate() argument
106 Elf32_Rel *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate()
111 relsec, sechdrs[relsec].sh_info); in apply_relocate()
112 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate()
114 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate()
118 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate()
140 int apply_relocate_add(Elf64_Shdr *sechdrs, in apply_relocate_add() argument
147 Elf64_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
153 relsec, sechdrs[relsec].sh_info); in apply_relocate_add()
154 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
156 loc = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
161 sym = (Elf64_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
226 const Elf_Shdr *sechdrs, in module_finalize() argument
231 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
233 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in module_finalize()