Lines Matching refs:sechdrs
120 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_frob_arch_sections() argument
132 switch (sechdrs[i].sh_type) { in module_frob_arch_sections()
134 symtab = sechdrs + i; in module_frob_arch_sections()
149 strings = (void *) hdr + sechdrs[symtab->sh_link].sh_offset; in module_frob_arch_sections()
165 if (sechdrs[i].sh_type != SHT_RELA) in module_frob_arch_sections()
167 nrela = sechdrs[i].sh_size / sizeof(Elf_Rela); in module_frob_arch_sections()
168 rela = (void *) hdr + sechdrs[i].sh_offset; in module_frob_arch_sections()
439 static int __apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in __apply_relocate_add() argument
451 relsec, sechdrs[relsec].sh_info); in __apply_relocate_add()
452 base = sechdrs[sechdrs[relsec].sh_info].sh_addr; in __apply_relocate_add()
453 symtab = (Elf_Sym *) sechdrs[symindex].sh_addr; in __apply_relocate_add()
454 rela = (Elf_Rela *) sechdrs[relsec].sh_addr; in __apply_relocate_add()
455 n = sechdrs[relsec].sh_size / sizeof(Elf_Rela); in __apply_relocate_add()
465 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add() argument
475 return __apply_relocate_add(sechdrs, strtab, symindex, relsec, me, in apply_relocate_add()
504 const Elf_Shdr *sechdrs, in module_finalize() argument
531 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
532 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in module_finalize()