Lines Matching refs:shnum
15 static unsigned long shnum; variable
259 if (shndx < shnum) { in sec_name()
287 for (i = 0; i < shnum; i++) { in sym_lookup()
399 shnum = ehdr.e_shnum; in read_ehdr()
416 if (shnum == SHN_UNDEF || shstrndx == SHN_XINDEX) { in read_ehdr()
425 if (shnum == SHN_UNDEF) in read_ehdr()
426 shnum = elf_xword_to_cpu(shdr.sh_size); in read_ehdr()
432 if (shstrndx >= shnum) in read_ehdr()
441 secs = calloc(shnum, sizeof(struct section)); in read_shdrs()
444 shnum); in read_shdrs()
450 for (i = 0; i < shnum; i++) { in read_shdrs()
454 i, shnum, strerror(errno)); in read_shdrs()
465 if (sec->shdr.sh_link < shnum) in read_shdrs()
474 for (i = 0; i < shnum; i++) { in read_strtabs()
500 for (i = 0; i < shnum; i++) { in read_symtabs()
561 for (i = 0; i < shnum; i++) { in read_relocs()
604 for (i = 0; i < shnum; i++) { in print_absolute_symbols()
642 for (i = 0; i < shnum; i++) { in print_absolute_relocs()
726 for (i = 0; i < shnum; i++) { in walk_relocs()
782 for (i = 0; i < shnum; i++) { in percpu_init()