Lines Matching refs:shnum
348 static unsigned int shnum; variable
427 shnum = ehdr->e_shnum; in check_elf_header()
452 shnum = shdr->sh_size; in check_elf_header()
462 if (shdr != NULL && shdr->sh_link < shnum) in check_elf_header()
465 else if (shstrndx >= shnum) in check_elf_header()
507 else if (ehdr->e_shoff + shnum * ehdr->e_shentsize > size) in check_elf_header()
541 for (cnt = idx + 1; cnt < shnum; ++cnt) in check_scn_group()
568 if (cnt == shnum) in check_scn_group()
612 for (size_t cnt = 1; cnt < shnum; ++cnt) in check_symtab()
716 || (sym->st_shndx >= shnum in check_symtab()
758 else if (xndx > 0 && xndx < shnum) in check_symtab()
1193 if (shdr->sh_info >= shnum) in check_reloc_shdr()
1892 for (size_t cnt = idx + 1; cnt < shnum; ++cnt) in check_symtab_shndx()
2482 if (val > shnum) in check_group()
3402 scnref = (int *) xcalloc (shnum, sizeof (int)); in check_sections()
3449 for (size_t cnt = 1; cnt < shnum; ++cnt) in check_sections()
3654 if (shdr->sh_link >= shnum) in check_sections()
3659 if (SH_INFO_LINK_P (shdr) && shdr->sh_info >= shnum) in check_sections()