Lines Matching refs:shnum
586 size_t shnum; in handle_elf() local
587 if (unlikely (elf_getshdrnum (elf, &shnum) < 0)) in handle_elf()
594 if (shstrndx >= shnum) in handle_elf()
603 if ((shnum + 2) * sizeof (struct shdr_info) > MAX_STACK_ALLOC) in handle_elf()
604 shdr_info = (struct shdr_info *) xcalloc (shnum + 2, in handle_elf()
608 shdr_info = (struct shdr_info *) alloca ((shnum + 2) in handle_elf()
610 memset (shdr_info, '\0', (shnum + 2) * sizeof (struct shdr_info)); in handle_elf()
643 if (shdr_info[cnt].old_sh_link >= shnum) in handle_elf()
679 if (grpref[inner] < shnum) in handle_elf()
726 for (cnt = 1; cnt < shnum; ++cnt) in handle_elf()
774 for (cnt = 1; cnt < shnum; ++cnt) in handle_elf()
783 if (shdr_info[cnt].shdr.sh_info >= shnum) in handle_elf()
798 if (grpref[in] < shnum) in handle_elf()
864 if (scnidx == SHN_UNDEF || scnidx >= shnum in handle_elf()
875 if (scnidx >= shnum) in handle_elf()
910 if (shdr_info[cnt].shdr.sh_info >= shnum) in handle_elf()
936 if (i != 0 && i < shnum + 2 && shdr_info[i].idx != 0 in handle_elf()
961 for (cnt = 1; cnt < shnum; ++cnt) in handle_elf()
1056 for (cnt = idx = 1; cnt < shnum; ++cnt) in handle_elf()
1219 if (grpref[inner] < shnum) in handle_elf()
1232 if (cnt < shnum) in handle_elf()
1310 || (sym->st_shndx >= shnum in handle_elf()
1465 elf_assert (symtabidx < shnum + 2); in handle_elf()
1799 elf_assert (symt < shnum + 2); in handle_elf()
1800 elf_assert (shdr_info[symt].symtab_idx < shnum + 2); in handle_elf()
1833 if (sec >= shnum + 2) in handle_elf()
2164 if ((shnum + 2) * sizeof (struct shdr_info) > MAX_STACK_ALLOC) in handle_elf()