Lines Matching refs:shnum
567 size_t shnum; in handle_elf() local
568 if (unlikely (elf_getshdrnum (elf, &shnum) < 0)) in handle_elf()
579 if ((shnum + 2) * sizeof (struct shdr_info) > MAX_STACK_ALLOC) in handle_elf()
580 shdr_info = (struct shdr_info *) xcalloc (shnum + 2, in handle_elf()
584 shdr_info = (struct shdr_info *) alloca ((shnum + 2) in handle_elf()
586 memset (shdr_info, '\0', (shnum + 2) * sizeof (struct shdr_info)); in handle_elf()
690 for (cnt = 1; cnt < shnum; ++cnt) in handle_elf()
736 for (cnt = 1; cnt < shnum; ++cnt) in handle_elf()
818 if (scnidx == SHN_UNDEF || scnidx >= shnum in handle_elf()
908 for (cnt = 1; cnt < shnum; ++cnt) in handle_elf()
994 for (cnt = idx = 1; cnt < shnum; ++cnt) in handle_elf()
1149 if (cnt < shnum) in handle_elf()
1226 || (sym->st_shndx >= shnum in handle_elf()
2025 if ((shnum + 2) * sizeof (struct shdr_info) > MAX_STACK_ALLOC) in handle_elf()