Lines Matching refs:sechdrs
55 Elf_Shdr *sechdrs, in module_frob_arch_sections() argument
64 for (symidx = 0; sechdrs[symidx].sh_type != SHT_SYMTAB; symidx++) { in module_frob_arch_sections()
70 sym = (Elf_Sym *)sechdrs[symidx].sh_addr; in module_frob_arch_sections()
71 strtab = (char *)sechdrs[sechdrs[symidx].sh_link].sh_addr; in module_frob_arch_sections()
73 for (i = 1; i < sechdrs[symidx].sh_size / sizeof(Elf_Sym); i++) { in module_frob_arch_sections()
82 int apply_relocate_add(Elf_Shdr *sechdrs, in apply_relocate_add() argument
89 Elf_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
94 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
98 location = (u8 *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
108 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
184 const Elf_Shdr *sechdrs) in do_patch_sections() argument
187 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in do_patch_sections()
189 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in do_patch_sections()
207 const Elf_Shdr *sechdrs, in module_finalize() argument
213 do_patch_sections(hdr, sechdrs); in module_finalize()