Lines Matching refs:phnum
127 static unsigned int phnum; variable
476 phnum = ehdr->e_phnum; in check_elf_header()
490 phnum = shdr->sh_info; in check_elf_header()
496 for (pcnt = 0; pcnt < phnum; ++pcnt) in check_elf_header()
503 if (pcnt < phnum) in check_elf_header()
504 ERROR (gettext ("Can only check %u headers, phnum was %u\n"), pcnt, phnum); in check_elf_header()
505 phnum = pcnt; in check_elf_header()
521 else if (ehdr->e_phoff + phnum * ehdr->e_phentsize > size) in check_elf_header()
538 else if (ehdr->e_phoff + phnum * ehdr->e_phentsize > size) in check_elf_header()
870 for (pcnt = 0; pcnt < phnum; ++pcnt) in check_symtab()
877 if (pcnt == phnum) in check_symtab()
1031 for (unsigned int pcnt = 0; pcnt < phnum; ++pcnt) in check_symtab()
1301 for (unsigned int i = 0; i < phnum; ++i) in check_reloc_shdr()
1785 for (n = 0; n < phnum; ++n) in check_dynamic()
1794 if (unlikely (n >= phnum)) in check_dynamic()
3043 for (i = 0; i < phnum; ++i) in unknown_dependency_p()
3048 if (i == phnum) in unknown_dependency_p()
3726 int *segment_flags = xcalloc (phnum, sizeof segment_flags[0]); in check_sections()
4031 for (pcnt = 0; pcnt < phnum; ++pcnt) in check_sections()
4124 if (pcnt == phnum) in check_sections()
4216 for (unsigned int pcnt = 0; pcnt < phnum; ++pcnt) in check_sections()
4473 for (unsigned int cnt = 0; cnt < phnum; ++cnt) in check_program_header()
4549 for (inner = 0; inner < phnum; ++inner) in check_program_header()
4590 if (inner >= phnum) in check_program_header()
4599 for (inner = 0; inner < phnum; ++inner) in check_program_header()
4613 if (inner >= phnum) in check_program_header()