Lines Matching refs:sechdrs

409 	Elf_Shdr *sechdrs;  in parse_elf()  local
451 sechdrs = (void *)hdr + hdr->e_shoff; in parse_elf()
452 info->sechdrs = sechdrs; in parse_elf()
467 info->num_sections = TO_NATIVE(sechdrs[0].sh_size); in parse_elf()
473 info->secindex_strings = TO_NATIVE(sechdrs[0].sh_link); in parse_elf()
481 sechdrs[i].sh_name = TO_NATIVE(sechdrs[i].sh_name); in parse_elf()
482 sechdrs[i].sh_type = TO_NATIVE(sechdrs[i].sh_type); in parse_elf()
483 sechdrs[i].sh_flags = TO_NATIVE(sechdrs[i].sh_flags); in parse_elf()
484 sechdrs[i].sh_addr = TO_NATIVE(sechdrs[i].sh_addr); in parse_elf()
485 sechdrs[i].sh_offset = TO_NATIVE(sechdrs[i].sh_offset); in parse_elf()
486 sechdrs[i].sh_size = TO_NATIVE(sechdrs[i].sh_size); in parse_elf()
487 sechdrs[i].sh_link = TO_NATIVE(sechdrs[i].sh_link); in parse_elf()
488 sechdrs[i].sh_info = TO_NATIVE(sechdrs[i].sh_info); in parse_elf()
489 sechdrs[i].sh_addralign = TO_NATIVE(sechdrs[i].sh_addralign); in parse_elf()
490 sechdrs[i].sh_entsize = TO_NATIVE(sechdrs[i].sh_entsize); in parse_elf()
493 secstrings = (void *)hdr + sechdrs[info->secindex_strings].sh_offset; in parse_elf()
496 int nobits = sechdrs[i].sh_type == SHT_NOBITS; in parse_elf()
498 if (!nobits && sechdrs[i].sh_offset > info->size) { in parse_elf()
501 (unsigned long)sechdrs[i].sh_offset, in parse_elf()
505 secname = secstrings + sechdrs[i].sh_name; in parse_elf()
509 info->modinfo = (void *)hdr + sechdrs[i].sh_offset; in parse_elf()
510 info->modinfo_len = sechdrs[i].sh_size; in parse_elf()
522 if (sechdrs[i].sh_type == SHT_SYMTAB) { in parse_elf()
526 sechdrs[i].sh_offset; in parse_elf()
528 sechdrs[i].sh_offset + sechdrs[i].sh_size; in parse_elf()
529 sh_link_idx = sechdrs[i].sh_link; in parse_elf()
531 sechdrs[sh_link_idx].sh_offset; in parse_elf()
535 if (sechdrs[i].sh_type == SHT_SYMTAB_SHNDX) { in parse_elf()
538 sechdrs[i].sh_offset; in parse_elf()
540 sechdrs[i].sh_offset + sechdrs[i].sh_size; in parse_elf()
556 if (symtab_idx != sechdrs[symtab_shndx_idx].sh_link) in parse_elf()
558 filename, sechdrs[symtab_shndx_idx].sh_link, in parse_elf()
762 Elf_Shdr *sechdrs = elf->sechdrs; in sec_name() local
764 elf->sechdrs[elf->secindex_strings].sh_offset + in sec_name()
765 sechdrs[secindex].sh_name; in sec_name()
771 elf->sechdrs[elf->secindex_strings].sh_offset + in sech_name()
1546 return ((elf->sechdrs[section_index].sh_flags & SHF_EXECINSTR) == SHF_EXECINSTR); in is_executable_section()
1681 Elf_Shdr *sechdrs = elf->sechdrs; in reloc_location() local
1684 return (void *)elf->hdr + sechdrs[section].sh_offset + in reloc_location()
1896 Elf_Shdr *sechdrs = elf->sechdrs; in check_sec_ref() local
1900 check_section(modname, elf, &elf->sechdrs[i]); in check_sec_ref()
1902 if (sechdrs[i].sh_type == SHT_RELA) in check_sec_ref()
1903 section_rela(modname, elf, &elf->sechdrs[i]); in check_sec_ref()
1904 else if (sechdrs[i].sh_type == SHT_REL) in check_sec_ref()
1905 section_rel(modname, elf, &elf->sechdrs[i]); in check_sec_ref()