Lines Matching refs:e_phnum
253 dst->e_phnum = H_GET_16 (abfd, src->e_phnum); in elf_swap_ehdr_in()
283 tmp = src->e_phnum; in elf_swap_ehdr_out()
286 H_PUT_16 (abfd, tmp, dst->e_phnum); in elf_swap_ehdr_out()
591 if (i_ehdrp->e_phnum > 0) in elf_object_p()
640 if (i_ehdrp->e_phnum == PN_XNUM && i_shdr.sh_info != 0) in elf_object_p()
642 i_ehdrp->e_phnum = i_shdr.sh_info; in elf_object_p()
643 if (i_ehdrp->e_phnum != i_shdr.sh_info) in elf_object_p()
766 if (i_ehdrp->e_phnum == 0) in elf_object_p()
774 if (i_ehdrp->e_phnum > ((bfd_size_type) -1) / sizeof (*i_phdr)) in elf_object_p()
777 amt = i_ehdrp->e_phnum * sizeof (*i_phdr); in elf_object_p()
784 for (i = 0; i < i_ehdrp->e_phnum; i++, i_phdr++) in elf_object_p()
1013 if (i_ehdrp->e_phnum >= PN_XNUM) in elf_write_shdrs_and_ehdr()
1014 i_shdrp[0]->sh_info = i_ehdrp->e_phnum; in elf_write_shdrs_and_ehdr()
1063 num = i_ehdrp->e_phnum; in elf_checksum_contents()
1586 fprintf (stderr, "e_phnum = %ld\n", (long) ehdrp->e_phnum); in elf_debug_file()
1679 if (i_ehdr.e_phentsize != sizeof (Elf_External_Phdr) || i_ehdr.e_phnum == 0) in NAME()
1686 bfd_malloc (i_ehdr.e_phnum * (sizeof *x_phdrs + sizeof *i_phdrs)); in NAME()
1690 i_ehdr.e_phnum * sizeof x_phdrs[0]); in NAME()
1698 i_phdrs = (Elf_Internal_Phdr *) &x_phdrs[i_ehdr.e_phnum]; in NAME()
1704 for (i = 0; i < i_ehdr.e_phnum; ++i) in NAME()
1784 for (i = 0; i < i_ehdr.e_phnum; ++i) in NAME()