Lines Matching defs:e_phnum
227 NEW_AUX_ENT(AT_PHNUM, exec->e_phnum);
411 if (interp_elf_ex->e_phnum < 1 ||
412 interp_elf_ex->e_phnum > 65536U / sizeof(struct elf_phdr))
416 size = sizeof(struct elf_phdr) * interp_elf_ex->e_phnum;
432 total_size = total_mapping_size(elf_phdata, interp_elf_ex->e_phnum);
439 for (i = 0; i < interp_elf_ex->e_phnum; i++, eppnt++) {
610 if (loc->elf_ex.e_phnum < 1 ||
611 loc->elf_ex.e_phnum > 65536U / sizeof(struct elf_phdr))
613 size = loc->elf_ex.e_phnum * sizeof(struct elf_phdr);
636 for (i = 0; i < loc->elf_ex.e_phnum; i++) {
695 for (i = 0; i < loc->elf_ex.e_phnum; i++, elf_ppnt++)
751 i < loc->elf_ex.e_phnum; i++, elf_ppnt++) {
1017 if (elf_ex.e_type != ET_EXEC || elf_ex.e_phnum > 2 ||
1023 j = sizeof(struct elf_phdr) * elf_ex.e_phnum;
1024 /* j < ELF_MIN_ALIGN because elf_ex.e_phnum <= 2 */
1037 for (j = 0, i = 0; i<elf_ex.e_phnum; i++)
1241 elf->e_phnum = segs;
1888 Elf_Half e_phnum;
1921 /* If segs > PN_XNUM(0xffff), then e_phnum overflows. To avoid
1924 e_phnum = segs > PN_XNUM ? PN_XNUM : segs;
1930 if (!fill_note_info(elf, e_phnum, &info, cprm->signr, cprm->regs))
1963 if (e_phnum == PN_XNUM) {
2049 if (e_phnum == PN_XNUM) {