Lines Matching refs:sechdrs
26 Elf_Shdr *sechdrs, in module_frob_arch_sections() argument
35 for (symidx = 0; sechdrs[symidx].sh_type != SHT_SYMTAB; symidx++) { in module_frob_arch_sections()
41 sym = (Elf_Sym *)sechdrs[symidx].sh_addr; in module_frob_arch_sections()
42 strtab = (char *)sechdrs[sechdrs[symidx].sh_link].sh_addr; in module_frob_arch_sections()
44 for (i = 1; i < sechdrs[symidx].sh_size / sizeof(Elf_Sym); i++) { in module_frob_arch_sections()
53 int apply_relocate_add(Elf_Shdr *sechdrs, in apply_relocate_add() argument
60 Elf_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
65 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
69 location = (u8 *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
79 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
155 const Elf_Shdr *sechdrs) in do_patch_sections() argument
158 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in do_patch_sections()
160 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in do_patch_sections()
178 const Elf_Shdr *sechdrs, in module_finalize() argument
181 do_patch_sections(hdr, sechdrs); in module_finalize()