Lines Matching defs:shnum
1185 size_t shnum;
1186 if (unlikely (elf_getshdrnum (elf, &shnum) < 0))
1193 if (shstrndx >= shnum)
1202 if ((shnum + 2) * sizeof (struct shdr_info) > MAX_STACK_ALLOC)
1203 shdr_info = xcalloc (shnum + 2, sizeof (struct shdr_info));
1206 shdr_info = (struct shdr_info *) alloca ((shnum + 2)
1208 memset (shdr_info, '\0', (shnum + 2) * sizeof (struct shdr_info));
1279 if (shdr_info[cnt].old_sh_link >= shnum)
1315 if (grpref[inner] < shnum)
1367 for (cnt = 1; cnt < shnum; ++cnt)
1422 for (cnt = 1; cnt < shnum; ++cnt)
1431 if (shdr_info[cnt].shdr.sh_info >= shnum)
1446 if (grpref[in] < shnum)
1512 if (scnidx == SHN_UNDEF || scnidx >= shnum
1523 if (scnidx >= shnum)
1569 if (shdr_info[cnt].shdr.sh_info >= shnum)
1604 if (i != 0 && i < shnum + 2 && shdr_info[i].idx != 0
1625 for (cnt = 1; cnt < shnum; ++cnt)
1735 for (cnt = idx = 1; cnt < shnum; ++cnt)
1908 if (grpref[inner] < shnum)
1921 if (cnt < shnum)
2032 elf_assert (sidx < shnum);
2189 elf_assert (symtabidx < shnum + 2);
2646 if ((shnum + 2) * sizeof (struct shdr_info) > MAX_STACK_ALLOC)