• Home
  • Raw
  • Download

Lines Matching refs:sechdrs

328 	Elf_Shdr *sechdr = &info->sechdrs[secindex];  in sym_get_data_by_offset()
355 return sech_name(info, &info->sechdrs[secindex]); in sec_name()
421 Elf_Shdr *sechdrs; in parse_elf() local
475 sechdrs = (void *)hdr + hdr->e_shoff; in parse_elf()
476 info->sechdrs = sechdrs; in parse_elf()
492 info->num_sections = TO_NATIVE(sechdrs[0].sh_size); in parse_elf()
498 info->secindex_strings = TO_NATIVE(sechdrs[0].sh_link); in parse_elf()
506 sechdrs[i].sh_name = TO_NATIVE(sechdrs[i].sh_name); in parse_elf()
507 sechdrs[i].sh_type = TO_NATIVE(sechdrs[i].sh_type); in parse_elf()
508 sechdrs[i].sh_flags = TO_NATIVE(sechdrs[i].sh_flags); in parse_elf()
509 sechdrs[i].sh_addr = TO_NATIVE(sechdrs[i].sh_addr); in parse_elf()
510 sechdrs[i].sh_offset = TO_NATIVE(sechdrs[i].sh_offset); in parse_elf()
511 sechdrs[i].sh_size = TO_NATIVE(sechdrs[i].sh_size); in parse_elf()
512 sechdrs[i].sh_link = TO_NATIVE(sechdrs[i].sh_link); in parse_elf()
513 sechdrs[i].sh_info = TO_NATIVE(sechdrs[i].sh_info); in parse_elf()
514 sechdrs[i].sh_addralign = TO_NATIVE(sechdrs[i].sh_addralign); in parse_elf()
515 sechdrs[i].sh_entsize = TO_NATIVE(sechdrs[i].sh_entsize); in parse_elf()
518 secstrings = (void *)hdr + sechdrs[info->secindex_strings].sh_offset; in parse_elf()
521 int nobits = sechdrs[i].sh_type == SHT_NOBITS; in parse_elf()
523 if (!nobits && sechdrs[i].sh_offset > info->size) in parse_elf()
525 filename, (unsigned long)sechdrs[i].sh_offset, in parse_elf()
528 secname = secstrings + sechdrs[i].sh_name; in parse_elf()
532 info->modinfo = (void *)hdr + sechdrs[i].sh_offset; in parse_elf()
533 info->modinfo_len = sechdrs[i].sh_size; in parse_elf()
538 if (sechdrs[i].sh_type == SHT_SYMTAB) { in parse_elf()
542 sechdrs[i].sh_offset; in parse_elf()
544 sechdrs[i].sh_offset + sechdrs[i].sh_size; in parse_elf()
545 sh_link_idx = sechdrs[i].sh_link; in parse_elf()
547 sechdrs[sh_link_idx].sh_offset; in parse_elf()
551 if (sechdrs[i].sh_type == SHT_SYMTAB_SHNDX) { in parse_elf()
554 sechdrs[i].sh_offset; in parse_elf()
556 sechdrs[i].sh_offset + sechdrs[i].sh_size; in parse_elf()
572 if (symtab_idx != sechdrs[symtab_shndx_idx].sh_link) in parse_elf()
574 filename, sechdrs[symtab_shndx_idx].sh_link, in parse_elf()
1015 return (elf->sechdrs[secndx].sh_flags & SHF_EXECINSTR) != 0; in is_executable_section()
1438 Elf_Shdr *sechdr = &elf->sechdrs[i]; in check_sec_ref()