Lines Matching refs:sechdrs
89 int apply_relocate(Elf32_Shdr *sechdrs, in apply_relocate() argument
96 Elf32_Rel *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate()
101 relsec, sechdrs[relsec].sh_info); in apply_relocate()
102 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate()
104 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate()
108 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate()
130 static int __apply_relocate_add(Elf64_Shdr *sechdrs, in __apply_relocate_add() argument
138 Elf64_Rela *rel = (void *)sechdrs[relsec].sh_addr; in __apply_relocate_add()
144 relsec, sechdrs[relsec].sh_info); in __apply_relocate_add()
145 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in __apply_relocate_add()
147 loc = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in __apply_relocate_add()
152 sym = (Elf64_Sym *)sechdrs[symindex].sh_addr in __apply_relocate_add()
221 int apply_relocate_add(Elf64_Shdr *sechdrs, in apply_relocate_add() argument
236 ret = __apply_relocate_add(sechdrs, strtab, symindex, relsec, me, in apply_relocate_add()
250 const Elf_Shdr *sechdrs, in module_finalize() argument
256 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
258 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in module_finalize()