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()
643 if (i_ehdrp->e_phnum == PN_XNUM && i_shdr.sh_info != 0) in elf_object_p()
645 i_ehdrp->e_phnum = i_shdr.sh_info; in elf_object_p()
646 if (i_ehdrp->e_phnum != i_shdr.sh_info) in elf_object_p()
767 if (i_ehdrp->e_phnum == 0) in elf_object_p()
774 amt = i_ehdrp->e_phnum * sizeof (Elf_Internal_Phdr); in elf_object_p()
781 for (i = 0; i < i_ehdrp->e_phnum; i++, i_phdr++) in elf_object_p()
1010 if (i_ehdrp->e_phnum >= PN_XNUM) in elf_write_shdrs_and_ehdr()
1011 i_shdrp[0]->sh_info = i_ehdrp->e_phnum; in elf_write_shdrs_and_ehdr()
1060 num = i_ehdrp->e_phnum; in elf_checksum_contents()
1581 fprintf (stderr, "e_phnum = %ld\n", (long) ehdrp->e_phnum); in elf_debug_file()
1674 if (i_ehdr.e_phentsize != sizeof (Elf_External_Phdr) || i_ehdr.e_phnum == 0) in NAME()
1681 bfd_malloc (i_ehdr.e_phnum * (sizeof *x_phdrs + sizeof *i_phdrs)); in NAME()
1685 i_ehdr.e_phnum * sizeof x_phdrs[0]); in NAME()
1693 i_phdrs = (Elf_Internal_Phdr *) &x_phdrs[i_ehdr.e_phnum]; in NAME()
1699 for (i = 0; i < i_ehdr.e_phnum; ++i) in NAME()
1779 for (i = 0; i < i_ehdr.e_phnum; ++i) in NAME()