Lines Matching refs:shnum
421 size_t shstrndx, shnum; in ctf_fdcreate_int() local
506 shnum = hdr.e64.e_shnum; in ctf_fdcreate_int()
510 if ((shstrndx == SHN_XINDEX) || (shnum == 0)) { in ctf_fdcreate_int()
519 shnum = x32.sh_size; in ctf_fdcreate_int()
529 shnum = x64.sh_size; in ctf_fdcreate_int()
534 if (shstrndx >= shnum) in ctf_fdcreate_int()
537 nbytes = sizeof (GElf_Shdr) * shnum; in ctf_fdcreate_int()
549 nbytes = sizeof (Elf32_Shdr) * shnum; in ctf_fdcreate_int()
557 for (i = 0; i < shnum; i++) in ctf_fdcreate_int()
589 for (i = 0; i < shnum; i++) { in ctf_fdcreate_int()
593 if (shp->sh_link >= shnum) in ctf_fdcreate_int()