Lines Matching defs:shnum
125 static unsigned int shnum;
305 if ((unsigned int) idx > shnum)
415 shnum = ehdr->e_shnum;
440 shnum = shdr->sh_size;
450 if (shdr != NULL && shdr->sh_link < shnum)
453 else if (shstrndx >= shnum)
462 for (scnt = 1; scnt < shnum; ++scnt)
471 if (scnt < shnum)
472 ERROR (_("Can only check %u headers, shnum was %u\n"), scnt, shnum);
473 shnum = scnt;
526 else if (ehdr->e_shoff + shnum * ehdr->e_shentsize > size)
543 else if (ehdr->e_shoff + shnum * ehdr->e_shentsize > size)
560 for (cnt = idx + 1; cnt < shnum; ++cnt)
588 if (cnt == shnum)
632 for (size_t cnt = 1; cnt < shnum; ++cnt)
742 || (sym->st_shndx >= shnum
784 else if (xndx > 0 && xndx < shnum)
1256 if (shdr->sh_info >= shnum)
1972 for (size_t cnt = idx + 1; cnt < shnum; ++cnt)
2729 if (val > shnum)
2758 if (val < shnum && ++scnref[val] == 2)
3707 scnref = xcalloc (shnum, sizeof (int));
3735 zeroth section has nonzero size value while ELF header has nonzero shnum value\n"));
3754 for (size_t cnt = 1; cnt < shnum; ++cnt)
3989 if (shdr->sh_link >= shnum)
3994 if (SH_INFO_LINK_P (shdr) && shdr->sh_info >= shnum)