Lines Matching refs:e_phnum
416 if (ehdr->e_phnum != 0) in check_elf_header()
422 else if (ehdr->e_phnum == 0) in check_elf_header()
482 else if (ehdr->e_phoff + ehdr->e_phnum * ehdr->e_phentsize > size) in check_elf_header()
499 else if (ehdr->e_phoff + ehdr->e_phnum * ehdr->e_phentsize > size) in check_elf_header()
801 for (pcnt = 0; pcnt < ehdr->e_phnum; ++pcnt) in check_symtab()
808 if (pcnt == ehdr->e_phnum) in check_symtab()
956 for (int pcnt = 0; pcnt < ehdr->e_phnum; ++pcnt) in check_symtab()
1202 for (int i = 0; i < ehdr->e_phnum; ++i) in check_reloc_shdr()
1689 for (n = 0; n < ehdr->e_phnum; ++n) in check_dynamic()
1698 if (unlikely (n >= ehdr->e_phnum)) in check_dynamic()
2772 for (i = 0; i < ehdr->e_phnum; ++i) in unknown_dependency_p()
2777 if (i == ehdr->e_phnum) in unknown_dependency_p()
3407 int *segment_flags = xcalloc (ehdr->e_phnum, sizeof segment_flags[0]); in check_sections()
3670 for (pcnt = 0; pcnt < ehdr->e_phnum; ++pcnt) in check_sections()
3731 if (pcnt == ehdr->e_phnum) in check_sections()
3823 for (int pcnt = 0; pcnt < ehdr->e_phnum; ++pcnt) in check_sections()
4042 for (int cnt = 0; cnt < ehdr->e_phnum; ++cnt) in check_program_header()
4118 for (inner = 0; inner < ehdr->e_phnum; ++inner) in check_program_header()
4143 if (inner >= ehdr->e_phnum) in check_program_header()
4152 for (inner = 0; inner < ehdr->e_phnum; ++inner) in check_program_header()
4166 if (inner >= ehdr->e_phnum) in check_program_header()