Lines Matching refs:sechdrs
303 static int __apply_relocate(Elf_Shdr *sechdrs, const char *strtab, in __apply_relocate() argument
319 sechdrs[relsec].sh_info); in __apply_relocate()
321 r.rel = (void *)sechdrs[relsec].sh_addr; in __apply_relocate()
324 for (i = 0; i < sechdrs[relsec].sh_size / reloc_sz; i++) { in __apply_relocate()
326 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in __apply_relocate()
329 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in __apply_relocate()
376 int apply_relocate(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate() argument
380 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, false); in apply_relocate()
384 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add() argument
388 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, true); in apply_relocate_add()
415 const Elf_Shdr *sechdrs, in module_finalize() argument
419 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
425 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in module_finalize()