Lines Matching refs:shnum
151 EHDR_HALF(shnum) in EHDR_HALF()
697 unsigned int shnum; in fill_relocs() local
705 shnum = ehdr_shnum(ehdr); in fill_relocs()
706 if (shnum == SHN_UNDEF) in fill_relocs()
707 shnum = shdr_size(shdr_start); in fill_relocs()
709 for (int i = 0; i < shnum; i++) { in fill_relocs()
754 unsigned int shnum; in replace_relocs() local
760 shnum = ehdr_shnum(ehdr); in replace_relocs()
761 if (shnum == SHN_UNDEF) in replace_relocs()
762 shnum = shdr_size(shdr_start); in replace_relocs()
764 for (int i = 0; i < shnum; i++) { in replace_relocs()
949 unsigned int shnum; in do_sort() local
969 shnum = ehdr_shnum(ehdr); in do_sort()
970 if (shnum == SHN_UNDEF) in do_sort()
971 shnum = shdr_size(shdr_start); in do_sort()
973 for (i = 0; i < shnum; i++) { in do_sort()