Lines Matching refs:shnum
15 static unsigned long shnum; variable
249 if (shndx < shnum) { in sec_name()
277 for (i = 0; i < shnum; i++) { in sym_lookup()
372 shnum = ehdr.e_shnum; in read_ehdr()
389 if (shnum == SHN_UNDEF || shstrndx == SHN_XINDEX) { in read_ehdr()
398 if (shnum == SHN_UNDEF) in read_ehdr()
399 shnum = elf_xword_to_cpu(shdr.sh_size); in read_ehdr()
405 if (shstrndx >= shnum) in read_ehdr()
414 secs = calloc(shnum, sizeof(struct section)); in read_shdrs()
417 shnum); in read_shdrs()
423 for (i = 0; i < shnum; i++) { in read_shdrs()
427 i, shnum, strerror(errno)); in read_shdrs()
438 if (sec->shdr.sh_link < shnum) in read_shdrs()
447 for (i = 0; i < shnum; i++) { in read_strtabs()
472 for (i = 0; i < shnum; i++) { in read_symtabs()
505 for (i = 0; i < shnum; i++) { in read_relocs()
548 for (i = 0; i < shnum; i++) { in print_absolute_symbols()
586 for (i = 0; i < shnum; i++) { in print_absolute_relocs()
670 for (i = 0; i < shnum; i++) { in walk_relocs()
726 for (i = 0; i < shnum; i++) { in percpu_init()