Lines Matching refs:shnum
1130 size_t shnum; in handle_elf() local
1131 if (unlikely (elf_getshdrnum (elf, &shnum) < 0)) in handle_elf()
1138 if (shstrndx >= shnum) in handle_elf()
1147 if ((shnum + 2) * sizeof (struct shdr_info) > MAX_STACK_ALLOC) in handle_elf()
1148 shdr_info = (struct shdr_info *) xcalloc (shnum + 2, in handle_elf()
1152 shdr_info = (struct shdr_info *) alloca ((shnum + 2) in handle_elf()
1154 memset (shdr_info, '\0', (shnum + 2) * sizeof (struct shdr_info)); in handle_elf()
1225 if (shdr_info[cnt].old_sh_link >= shnum) in handle_elf()
1261 if (grpref[inner] < shnum) in handle_elf()
1313 for (cnt = 1; cnt < shnum; ++cnt) in handle_elf()
1368 for (cnt = 1; cnt < shnum; ++cnt) in handle_elf()
1377 if (shdr_info[cnt].shdr.sh_info >= shnum) in handle_elf()
1392 if (grpref[in] < shnum) in handle_elf()
1458 if (scnidx == SHN_UNDEF || scnidx >= shnum in handle_elf()
1469 if (scnidx >= shnum) in handle_elf()
1515 if (shdr_info[cnt].shdr.sh_info >= shnum) in handle_elf()
1541 if (i != 0 && i < shnum + 2 && shdr_info[i].idx != 0 in handle_elf()
1566 for (cnt = 1; cnt < shnum; ++cnt) in handle_elf()
1677 for (cnt = idx = 1; cnt < shnum; ++cnt) in handle_elf()
1854 if (grpref[inner] < shnum) in handle_elf()
1867 if (cnt < shnum) in handle_elf()
2153 elf_assert (symtabidx < shnum + 2); in handle_elf()
2627 if ((shnum + 2) * sizeof (struct shdr_info) > MAX_STACK_ALLOC) in handle_elf()