Lines Matching refs:shnum
42 static unsigned long shnum; variable
146 shnum = ehdr.e_shnum; in read_ehdr()
162 if (shnum == SHN_UNDEF || shstrndx == SHN_XINDEX) { in read_ehdr()
171 if (shnum == SHN_UNDEF) in read_ehdr()
172 shnum = elf_xword_to_cpu(shdr.sh_size); in read_ehdr()
178 if (shstrndx >= shnum) in read_ehdr()
187 secs = calloc(shnum, sizeof(struct section)); in read_shdrs()
189 die("Unable to allocate %ld section headers\n", shnum); in read_shdrs()
194 for (i = 0; i < shnum; i++) { in read_shdrs()
199 i, shnum, strerror(errno)); in read_shdrs()
213 if (sec->shdr.sh_link < shnum) in read_shdrs()
223 for (i = 0; i < shnum; i++) { in read_relocs()
298 for (i = 0; i < shnum; i++) { in walk_relocs()