Lines Matching refs:shnum
364 unsigned int shnum; in fill_relocs() local
372 shnum = ehdr_shnum(ehdr); in fill_relocs()
373 if (shnum == SHN_UNDEF) in fill_relocs()
374 shnum = shdr_size(shdr_start); in fill_relocs()
376 for (int i = 0; i < shnum; i++) { in fill_relocs()
421 unsigned int shnum; in replace_relocs() local
427 shnum = ehdr_shnum(ehdr); in replace_relocs()
428 if (shnum == SHN_UNDEF) in replace_relocs()
429 shnum = shdr_size(shdr_start); in replace_relocs()
431 for (int i = 0; i < shnum; i++) { in replace_relocs()
616 unsigned int shnum; in do_sort() local
636 shnum = ehdr_shnum(ehdr); in do_sort()
637 if (shnum == SHN_UNDEF) in do_sort()
638 shnum = shdr_size(shdr_start); in do_sort()
640 for (i = 0; i < shnum; i++) { in do_sort()