Lines Matching refs:sechdrs
321 Elf_Shdr *sechdr = &info->sechdrs[secindex]; in sym_get_data_by_offset()
348 return sech_name(info, &info->sechdrs[secindex]); in sec_name()
409 Elf_Shdr *sechdrs; in parse_elf() local
463 sechdrs = (void *)hdr + hdr->e_shoff; in parse_elf()
464 info->sechdrs = sechdrs; in parse_elf()
480 info->num_sections = TO_NATIVE(sechdrs[0].sh_size); in parse_elf()
486 info->secindex_strings = TO_NATIVE(sechdrs[0].sh_link); in parse_elf()
494 sechdrs[i].sh_name = TO_NATIVE(sechdrs[i].sh_name); in parse_elf()
495 sechdrs[i].sh_type = TO_NATIVE(sechdrs[i].sh_type); in parse_elf()
496 sechdrs[i].sh_flags = TO_NATIVE(sechdrs[i].sh_flags); in parse_elf()
497 sechdrs[i].sh_addr = TO_NATIVE(sechdrs[i].sh_addr); in parse_elf()
498 sechdrs[i].sh_offset = TO_NATIVE(sechdrs[i].sh_offset); in parse_elf()
499 sechdrs[i].sh_size = TO_NATIVE(sechdrs[i].sh_size); in parse_elf()
500 sechdrs[i].sh_link = TO_NATIVE(sechdrs[i].sh_link); in parse_elf()
501 sechdrs[i].sh_info = TO_NATIVE(sechdrs[i].sh_info); in parse_elf()
502 sechdrs[i].sh_addralign = TO_NATIVE(sechdrs[i].sh_addralign); in parse_elf()
503 sechdrs[i].sh_entsize = TO_NATIVE(sechdrs[i].sh_entsize); in parse_elf()
506 secstrings = (void *)hdr + sechdrs[info->secindex_strings].sh_offset; in parse_elf()
509 int nobits = sechdrs[i].sh_type == SHT_NOBITS; in parse_elf()
511 if (!nobits && sechdrs[i].sh_offset > info->size) in parse_elf()
513 filename, (unsigned long)sechdrs[i].sh_offset, in parse_elf()
516 secname = secstrings + sechdrs[i].sh_name; in parse_elf()
520 info->modinfo = (void *)hdr + sechdrs[i].sh_offset; in parse_elf()
521 info->modinfo_len = sechdrs[i].sh_size; in parse_elf()
525 info->no_trim_symbol = (void *)hdr + sechdrs[i].sh_offset; in parse_elf()
526 info->no_trim_symbol_len = sechdrs[i].sh_size; in parse_elf()
529 if (sechdrs[i].sh_type == SHT_SYMTAB) { in parse_elf()
533 sechdrs[i].sh_offset; in parse_elf()
535 sechdrs[i].sh_offset + sechdrs[i].sh_size; in parse_elf()
536 sh_link_idx = sechdrs[i].sh_link; in parse_elf()
538 sechdrs[sh_link_idx].sh_offset; in parse_elf()
542 if (sechdrs[i].sh_type == SHT_SYMTAB_SHNDX) { in parse_elf()
545 sechdrs[i].sh_offset; in parse_elf()
547 sechdrs[i].sh_offset + sechdrs[i].sh_size; in parse_elf()
563 if (symtab_idx != sechdrs[symtab_shndx_idx].sh_link) in parse_elf()
565 filename, sechdrs[symtab_shndx_idx].sh_link, in parse_elf()
1005 return (elf->sechdrs[secndx].sh_flags & SHF_EXECINSTR) != 0; in is_executable_section()
1428 Elf_Shdr *sechdr = &elf->sechdrs[i]; in check_sec_ref()