Lines Matching refs:sechdrs
76 Elf_Shdr *sechdrs, in module_frob_arch_sections() argument
85 for (symidx = 0; sechdrs[symidx].sh_type != SHT_SYMTAB; symidx++) { in module_frob_arch_sections()
91 sym = (Elf_Sym *)sechdrs[symidx].sh_addr; in module_frob_arch_sections()
92 strtab = (char *)sechdrs[sechdrs[symidx].sh_link].sh_addr; in module_frob_arch_sections()
94 for (i = 1; i < sechdrs[symidx].sh_size / sizeof(Elf_Sym); i++) { in module_frob_arch_sections()
107 int apply_relocate_add(Elf_Shdr *sechdrs, in apply_relocate_add() argument
114 Elf_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
119 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
123 location = (u8 *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
133 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
210 const Elf_Shdr *sechdrs) in do_patch_sections() argument
213 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in do_patch_sections()
215 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in do_patch_sections()
233 const Elf_Shdr *sechdrs, in module_finalize() argument
239 do_patch_sections(hdr, sechdrs); in module_finalize()