| /freebsd-12.1/contrib/elftoolchain/libelf/ |
| H A D | gelf_ehdr.c | 78 d->e_phnum = eh32->e_phnum; in gelf_getehdr() 161 eh32->e_phnum = s->e_phnum; in gelf_update_ehdr()
|
| H A D | libelf_extended.c | 129 ((Elf32_Ehdr *) eh)->e_phnum = phnum & 0xFFFFU; in _libelf_setphnum() 131 ((Elf64_Ehdr *) eh)->e_phnum = phnum & 0xFFFFU; in _libelf_setphnum()
|
| H A D | libelf_ehdr.c | 175 phnum = ((Elf32_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr() 180 phnum = ((Elf64_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr()
|
| H A D | elf_types.m4 | 112 `e_phnum, HALF', 129 `e_phnum, HALF',
|
| /freebsd-12.1/contrib/binutils/bfd/ |
| H A D | elfcore.h | 189 amt = sizeof (*i_phdrp) * i_ehdrp->e_phnum; in elf_core_file_p() 197 for (phindex = 0; phindex < i_ehdrp->e_phnum; ++phindex) in elf_core_file_p() 225 for (phindex = 0; phindex < i_ehdrp->e_phnum; ++phindex) in elf_core_file_p()
|
| H A D | elfcode.h | 247 dst->e_phnum = H_GET_16 (abfd, src->e_phnum); in elf_swap_ehdr_in() 277 H_PUT_16 (abfd, src->e_phnum, dst->e_phnum); in elf_swap_ehdr_out() 624 if (i_ehdrp->e_phnum > 0) in elf_object_p() 817 if (i_ehdrp->e_phnum == 0) in elf_object_p() 824 amt = i_ehdrp->e_phnum * sizeof (Elf_Internal_Phdr); in elf_object_p() 831 for (i = 0; i < i_ehdrp->e_phnum; i++, i_phdr++) in elf_object_p() 1549 fprintf (stderr, "e_phnum = %ld\n", (long) ehdrp->e_phnum); in elf_debug_file() 1651 i_ehdr.e_phnum * sizeof x_phdrs[0]); in NAME() 1659 i_phdrs = (Elf_Internal_Phdr *) &x_phdrs[i_ehdr.e_phnum]; in NAME() 1664 for (i = 0; i < i_ehdr.e_phnum; ++i) in NAME() [all …]
|
| /freebsd-12.1/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| H A D | output.c | 489 if (sehdr.e_phnum != 0) { in write_file() 491 if (gelf_newphdr(dst, sehdr.e_phnum) == NULL) in write_file() 494 for (i = 0; i < sehdr.e_phnum; i++) { in write_file() 558 if (changing && sehdr.e_phnum != 0) { in write_file() 614 if (sehdr.e_phnum != 0) in write_file() 674 if (changing && sehdr.e_phnum != 0) { in write_file() 693 if (sehdr.e_phnum != 0) { in write_file()
|
| /freebsd-12.1/sys/arm/arm/ |
| H A D | elf_trampoline.c | 313 eh->e_phnum * sizeof(phdr[0])); in load_kernel() 316 for (i = 0; i < eh->e_phnum; i++) { in load_kernel() 330 for (j = 0; j < eh->e_phnum; j++) { in load_kernel() 340 j = eh->e_phnum; in load_kernel() 382 j = eh->e_phnum; in load_kernel()
|
| /freebsd-12.1/contrib/file/src/ |
| H A D | elfclass.h | 39 phnum = elf_getu16(swap, elfhdr.e_phnum); 52 phnum = elf_getu16(swap, elfhdr.e_phnum);
|
| H A D | readelf.h | 103 Elf32_Half e_phnum; member 120 Elf64_Half e_phnum; member
|
| /freebsd-12.1/libexec/rtld-elf/ |
| H A D | map_object.c | 107 phsize = hdr->e_phnum * sizeof (phdr[0]); in map_object() 108 phlimit = phdr + hdr->e_phnum; in map_object() 118 segs = alloca(sizeof(segs[0]) * hdr->e_phnum); in map_object() 272 (hdr->e_phoff + hdr->e_phnum * sizeof (Elf_Phdr))) { in map_object() 385 if (hdr->e_phoff + hdr->e_phnum * sizeof(Elf_Phdr) > in get_elf_header()
|
| /freebsd-12.1/contrib/binutils/include/elf/ |
| H A D | external.h | 51 unsigned char e_phnum[2]; /* Program header table entry count */ member 68 unsigned char e_phnum[2]; /* Program header table entry count */ member
|
| H A D | internal.h | 55 unsigned int e_phnum; /* Program header table entry count */ member
|
| /freebsd-12.1/sys/kern/ |
| H A D | kern_dump.c | 323 ehdr.e_phnum = dumpsys_foreach_chunk(cb_size, &dumpsize) + in dumpsys_generic() 325 hdrsz = ehdr.e_phoff + ehdr.e_phnum * ehdr.e_phentsize; in dumpsys_generic() 338 ehdr.e_phnum - DUMPSYS_NUM_AUX_HDRS); in dumpsys_generic()
|
| H A D | imgact_elf.c | 672 for (i = 0; i < hdr->e_phnum; i++) { in __elfN() 785 (u_int)hdr->e_phentsize * hdr->e_phnum > PAGE_SIZE - hdr->e_phoff) { in __elfN() 854 for (i = 0; i < hdr->e_phnum; i++) { in __elfN() 1062 (u_int)hdr->e_phentsize * hdr->e_phnum > PAGE_SIZE - hdr->e_phoff) { in __CONCAT() 1084 for (i = 0; i < hdr->e_phnum; i++) { in __CONCAT() 1101 hdr->e_phoff + hdr->e_phnum * hdr->e_phentsize in __CONCAT() 1284 elf_auxargs->phnum = hdr->e_phnum; in __CONCAT() 1893 ehdr->e_phnum = numsegs + 1; in __elfN() 1896 ehdr->e_phnum = PN_XNUM; in __elfN() 2667 for (i = 0; i < hdr->e_phnum; i++) { in __elfN() [all …]
|
| /freebsd-12.1/sys/mips/mips/ |
| H A D | elf_trampoline.c | 132 eh->e_phnum * sizeof(phdr[0])); in load_kernel() 155 for (i = 0; i < eh->e_phnum; i++) { in load_kernel()
|
| /freebsd-12.1/lib/libkvm/ |
| H A D | kvm_powerpc64.c | 124 mapsz = be16toh(vm->eh->e_phentsize) * be16toh(vm->eh->e_phnum) + in powerpc_maphdrs() 158 nph = be16toh(vm->eh->e_phnum); in powerpc64_va2off()
|
| H A D | kvm_powerpc.c | 124 mapsz = be16toh(vm->eh->e_phentsize) * be16toh(vm->eh->e_phnum) + in powerpc_maphdrs() 157 nph = be16toh(vm->eh->e_phnum); in powerpc_va2off()
|
| /freebsd-12.1/lib/libprocstat/ |
| H A D | core.c | 128 for (i = 0; i < ehdr.e_phnum; i++) { in procstat_core_open() 136 if (i == ehdr.e_phnum) { in procstat_core_open() 312 for (i = 0; i < core->pc_ehdr.e_phnum; i++) { in core_read_mem()
|
| /freebsd-12.1/usr.bin/ldd/ |
| H A D | ldd.c | 332 for (i = 0; i < hdr.elf32.e_phnum; i++) { in is_executable() 374 for (i = 0; i < hdr.elf.e_phnum; i++) { in is_executable()
|
| /freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/ObjectFile/ELF/ |
| H A D | ELFHeader.cpp | 109 e_phnum = section_zero.sh_info; in ParseHeaderExtension() 149 e_phnum = e_phnum_hdr; in Parse()
|
| /freebsd-12.1/stand/common/ |
| H A D | load_elf.c | 144 CONVERT_FIELD(b, e_phnum, e); \ in elf_header_convert() 524 if ((ehdr->e_phoff + ehdr->e_phnum * sizeof(*phdr)) > ef->firstlen) { in __elfN() 531 for (i = 0; i < ehdr->e_phnum; i++) { in __elfN() 652 for (j = 0; j < ehdr->e_phnum; j++) { in __elfN() 767 for (i = 0; i < ehdr->e_phnum; i++) { in __elfN()
|
| /freebsd-12.1/sys/sys/ |
| H A D | elf32.h | 68 Elf32_Half e_phnum; /* Number of program header entries. */ member
|
| H A D | elf64.h | 77 Elf64_Half e_phnum; /* Number of program header entries. */ member
|
| /freebsd-12.1/usr.bin/elf2aout/ |
| H A D | elf2aout.c | 130 phnum = xe16toh(e->e_phnum); in main()
|