Lines Matching refs:sechdrs
102 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_frob_arch_sections() argument
114 switch (sechdrs[i].sh_type) { in module_frob_arch_sections()
116 symtab = sechdrs + i; in module_frob_arch_sections()
131 strings = (void *) hdr + sechdrs[symtab->sh_link].sh_offset; in module_frob_arch_sections()
147 if (sechdrs[i].sh_type != SHT_RELA) in module_frob_arch_sections()
149 nrela = sechdrs[i].sh_size / sizeof(Elf_Rela); in module_frob_arch_sections()
150 rela = (void *) hdr + sechdrs[i].sh_offset; in module_frob_arch_sections()
408 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add() argument
419 relsec, sechdrs[relsec].sh_info); in apply_relocate_add()
420 base = sechdrs[sechdrs[relsec].sh_info].sh_addr; in apply_relocate_add()
421 symtab = (Elf_Sym *) sechdrs[symindex].sh_addr; in apply_relocate_add()
422 rela = (Elf_Rela *) sechdrs[relsec].sh_addr; in apply_relocate_add()
423 n = sechdrs[relsec].sh_size / sizeof(Elf_Rela); in apply_relocate_add()
434 const Elf_Shdr *sechdrs, in module_finalize() argument
458 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
459 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in module_finalize()