Lines Matching refs:sechdrs
313 static int __apply_relocate(Elf_Shdr *sechdrs, const char *strtab, in __apply_relocate() argument
329 sechdrs[relsec].sh_info); in __apply_relocate()
331 r.rel = (void *)sechdrs[relsec].sh_addr; in __apply_relocate()
334 for (i = 0; i < sechdrs[relsec].sh_size / reloc_sz; i++) { in __apply_relocate()
336 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in __apply_relocate()
339 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in __apply_relocate()
386 int apply_relocate(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate() argument
390 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, false); in apply_relocate()
394 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add() argument
398 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, true); in apply_relocate_add()
425 const Elf_Shdr *sechdrs, in module_finalize() argument
429 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
435 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in module_finalize()