Lines Matching refs:sechdrs

326 	Elf_Shdr *sechdr = &info->sechdrs[secindex];  in sym_get_data_by_offset()
353 return sech_name(info, &info->sechdrs[secindex]); in sec_name()
414 Elf_Shdr *sechdrs; in parse_elf() local
468 sechdrs = (void *)hdr + hdr->e_shoff; in parse_elf()
469 info->sechdrs = sechdrs; in parse_elf()
485 info->num_sections = TO_NATIVE(sechdrs[0].sh_size); in parse_elf()
491 info->secindex_strings = TO_NATIVE(sechdrs[0].sh_link); in parse_elf()
499 sechdrs[i].sh_name = TO_NATIVE(sechdrs[i].sh_name); in parse_elf()
500 sechdrs[i].sh_type = TO_NATIVE(sechdrs[i].sh_type); in parse_elf()
501 sechdrs[i].sh_flags = TO_NATIVE(sechdrs[i].sh_flags); in parse_elf()
502 sechdrs[i].sh_addr = TO_NATIVE(sechdrs[i].sh_addr); in parse_elf()
503 sechdrs[i].sh_offset = TO_NATIVE(sechdrs[i].sh_offset); in parse_elf()
504 sechdrs[i].sh_size = TO_NATIVE(sechdrs[i].sh_size); in parse_elf()
505 sechdrs[i].sh_link = TO_NATIVE(sechdrs[i].sh_link); in parse_elf()
506 sechdrs[i].sh_info = TO_NATIVE(sechdrs[i].sh_info); in parse_elf()
507 sechdrs[i].sh_addralign = TO_NATIVE(sechdrs[i].sh_addralign); in parse_elf()
508 sechdrs[i].sh_entsize = TO_NATIVE(sechdrs[i].sh_entsize); in parse_elf()
511 secstrings = (void *)hdr + sechdrs[info->secindex_strings].sh_offset; in parse_elf()
514 int nobits = sechdrs[i].sh_type == SHT_NOBITS; in parse_elf()
516 if (!nobits && sechdrs[i].sh_offset > info->size) in parse_elf()
518 filename, (unsigned long)sechdrs[i].sh_offset, in parse_elf()
521 secname = secstrings + sechdrs[i].sh_name; in parse_elf()
525 info->modinfo = (void *)hdr + sechdrs[i].sh_offset; in parse_elf()
526 info->modinfo_len = sechdrs[i].sh_size; in parse_elf()
530 info->no_trim_symbol = (void *)hdr + sechdrs[i].sh_offset; in parse_elf()
531 info->no_trim_symbol_len = sechdrs[i].sh_size; in parse_elf()
534 if (sechdrs[i].sh_type == SHT_SYMTAB) { in parse_elf()
538 sechdrs[i].sh_offset; in parse_elf()
540 sechdrs[i].sh_offset + sechdrs[i].sh_size; in parse_elf()
541 sh_link_idx = sechdrs[i].sh_link; in parse_elf()
543 sechdrs[sh_link_idx].sh_offset; in parse_elf()
547 if (sechdrs[i].sh_type == SHT_SYMTAB_SHNDX) { in parse_elf()
550 sechdrs[i].sh_offset; in parse_elf()
552 sechdrs[i].sh_offset + sechdrs[i].sh_size; in parse_elf()
568 if (symtab_idx != sechdrs[symtab_shndx_idx].sh_link) in parse_elf()
570 filename, sechdrs[symtab_shndx_idx].sh_link, in parse_elf()
1019 return (elf->sechdrs[secndx].sh_flags & SHF_EXECINSTR) != 0; in is_executable_section()
1442 Elf_Shdr *sechdr = &elf->sechdrs[i]; in check_sec_ref()