Lines Matching refs:sechdrs
56 Elf_Shdr *sechdrs, in module_frob_arch_sections() argument
65 for (symidx = 0; sechdrs[symidx].sh_type != SHT_SYMTAB; symidx++) { in module_frob_arch_sections()
71 sym = (Elf_Sym *)sechdrs[symidx].sh_addr; in module_frob_arch_sections()
72 strtab = (char *)sechdrs[sechdrs[symidx].sh_link].sh_addr; in module_frob_arch_sections()
74 for (i = 1; i < sechdrs[symidx].sh_size / sizeof(Elf_Sym); i++) { in module_frob_arch_sections()
83 int apply_relocate_add(Elf_Shdr *sechdrs, in apply_relocate_add() argument
90 Elf_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
95 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
99 location = (u8 *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
109 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
185 const Elf_Shdr *sechdrs) in do_patch_sections() argument
188 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in do_patch_sections()
190 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in do_patch_sections()
208 const Elf_Shdr *sechdrs, in module_finalize() argument
214 do_patch_sections(hdr, sechdrs); in module_finalize()