Lines Matching refs:sechdrs
64 module_frob_arch_sections(Elf64_Ehdr *hdr, Elf64_Shdr *sechdrs, in module_frob_arch_sections() argument
72 esechdrs = sechdrs + hdr->e_shnum; in module_frob_arch_sections()
78 for (s = sechdrs; s < esechdrs; ++s) in module_frob_arch_sections()
83 me->arch.gotsecindex = s - sechdrs; in module_frob_arch_sections()
110 for (s = sechdrs; s < esechdrs; ++s) in module_frob_arch_sections()
133 apply_relocate_add(Elf64_Shdr *sechdrs, const char *strtab, in apply_relocate_add() argument
137 Elf64_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
138 unsigned long i, n = sechdrs[relsec].sh_size / sizeof(*rela); in apply_relocate_add()
144 sechdrs[relsec].sh_info); in apply_relocate_add()
146 base = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr; in apply_relocate_add()
147 symtab = (Elf64_Sym *)sechdrs[symindex].sh_addr; in apply_relocate_add()
152 got = sechdrs[me->arch.gotsecindex].sh_addr; in apply_relocate_add()