| /freebsd-14.2/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 | 179 phnum = ((Elf32_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr() 184 phnum = ((Elf64_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr()
|
| H A D | elf_types.m4 | 112 `e_phnum, HALF', 129 `e_phnum, HALF',
|
| /freebsd-14.2/libexec/rtld-elf/ |
| H A D | map_object.c | 51 return (hdr->e_phoff + hdr->e_phnum * sizeof(Elf_Phdr) <= page_size); in phdr_in_zero_page() 112 phsize = hdr->e_phnum * sizeof(phdr[0]); in map_object() 113 phlimit = phdr + hdr->e_phnum; in map_object() 123 segs = alloca(sizeof(segs[0]) * hdr->e_phnum); in map_object() 284 (hdr->e_phoff + hdr->e_phnum * sizeof (Elf_Phdr))) { in map_object() 342 munmap(phdr, hdr->e_phnum * sizeof(phdr[0])); in map_object() 412 phdr = mmap(NULL, hdr->e_phnum * sizeof(phdr[0]), in get_elf_header()
|
| /freebsd-14.2/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| H A D | output.c | 488 if (sehdr.e_phnum != 0) { in write_file() 490 if (gelf_newphdr(dst, sehdr.e_phnum) == NULL) in write_file() 493 for (i = 0; i < sehdr.e_phnum; i++) { in write_file() 556 if (changing && sehdr.e_phnum != 0) { in write_file() 612 if (sehdr.e_phnum != 0) in write_file() 672 if (changing && sehdr.e_phnum != 0) { in write_file() 691 if (sehdr.e_phnum != 0) { in write_file()
|
| /freebsd-14.2/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-14.2/lib/libkvm/ |
| H A D | kvm_powerpc.c | 122 mapsz = be16toh(vm->eh->e_phentsize) * be16toh(vm->eh->e_phnum) + in powerpc_maphdrs() 155 nph = be16toh(vm->eh->e_phnum); in powerpc_va2off()
|
| H A D | kvm_powerpc64.c | 125 _kvm16toh(kd, vm->eh->e_phnum) + _kvm64toh(kd, vm->eh->e_phoff); in powerpc_maphdrs() 158 nph = _kvm16toh(kd, vm->eh->e_phnum); in powerpc64_va2off()
|
| /freebsd-14.2/sys/kern/ |
| H A D | kern_dump.c | 326 ehdr.e_phnum = dumpsys_foreach_chunk(cb_size, &dumpsize) + in dumpsys_generic() 328 hdrsz = ehdr.e_phoff + ehdr.e_phnum * ehdr.e_phentsize; in dumpsys_generic() 341 ehdr.e_phnum - DUMPSYS_NUM_AUX_HDRS); in dumpsys_generic()
|
| H A D | imgact_elf.c | 483 (u_int)hdr->e_phentsize * hdr->e_phnum <= PAGE_SIZE - hdr->e_phoff); in __elfN() 737 for (i = 0; i < hdr->e_phnum; i++) { in __elfN() 934 for (i = 0; i < hdr->e_phnum; i++) { in __elfN() 1163 for (i = 0; i < hdr->e_phnum; i++) { in __CONCAT() 1191 hdr->e_phoff + hdr->e_phnum * hdr->e_phentsize <= in __CONCAT() 1405 elf_auxargs->phnum = hdr->e_phnum; in __CONCAT() 1927 ehdr->e_phnum = numsegs + 1; in __elfN() 1930 ehdr->e_phnum = PN_XNUM; in __elfN() 2857 for (i = 0; i < hdr->e_phnum; i++) { in __elfN() 2861 for (j = 0; j < hdr->e_phnum; j++) { in __elfN()
|
| H A D | link_elf.c | 799 phlimit = phdr + hdr->e_phnum; in preload_protect() 1058 (hdr->e_phoff + hdr->e_phnum*sizeof(Elf_Phdr) <= PAGE_SIZE) && in link_elf_load_file() 1059 (hdr->e_phoff + hdr->e_phnum*sizeof(Elf_Phdr) <= nbytes))) in link_elf_load_file() 1069 phlimit = phdr + hdr->e_phnum; in link_elf_load_file()
|
| /freebsd-14.2/lib/libprocstat/ |
| H A D | core.c | 126 for (i = 0; i < ehdr.e_phnum; i++) { in procstat_core_open() 134 if (i == ehdr.e_phnum) { in procstat_core_open() 310 for (i = 0; i < core->pc_ehdr.e_phnum; i++) { in core_read_mem()
|
| /freebsd-14.2/usr.bin/elfctl/ |
| H A D | elfctl.c | 179 if (!print_file_features(elf, ehdr.e_phnum, fd, in main() 184 } else if (!edit_file_features(elf, ehdr.e_phnum, fd, in main()
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/ |
| H A D | ELFHeader.cpp | 106 e_phnum = section_zero.sh_info; in ParseHeaderExtension() 146 e_phnum = e_phnum_hdr; in Parse()
|
| H A D | ELFHeader.h | 75 elf_word e_phnum; ///< Number of program header entries. member
|
| /freebsd-14.2/sys/sys/ |
| H A D | elf32.h | 66 Elf32_Half e_phnum; /* Number of program header entries. */ member
|
| H A D | elf64.h | 75 Elf64_Half e_phnum; /* Number of program header entries. */ member
|
| /freebsd-14.2/stand/common/ |
| H A D | load_elf.c | 150 CONVERT_FIELD(b, e_phnum, e); \ in elf_header_convert() 630 if ((ehdr->e_phoff + ehdr->e_phnum * sizeof(*phdr)) > ef->firstlen) { 637 for (i = 0; i < ehdr->e_phnum; i++) { 757 for (j = 0; j < ehdr->e_phnum; j++) { 850 for (i = 0; i < ehdr->e_phnum; i++) {
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/profile/ |
| H A D | InstrProfilingPlatformLinux.c | 167 for (I = 0; I < ElfHeader->e_phnum; I++) { in __llvm_write_binary_ids()
|
| /freebsd-14.2/cddl/contrib/opensolaris/lib/libctf/common/ |
| H A D | ctf_lib.c | 154 dst->e_phnum = src->e_phnum; in ehdr_to_gelf()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Object/ |
| H A D | ELF.h | 328 if (getHeader().e_phnum && getHeader().e_phentsize != sizeof(Elf_Phdr)) in program_headers() 333 (uint64_t)getHeader().e_phnum * getHeader().e_phentsize; in program_headers() 339 ", e_phnum = " + Twine(getHeader().e_phnum) + in program_headers() 343 return ArrayRef(Begin, Begin + getHeader().e_phnum); in program_headers()
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/DynamicLoader/FreeBSD-Kernel/ |
| H A D | DynamicLoaderFreeBSDKernel.cpp | 282 elf_eheader.e_phnum * elf_eheader.e_phentsize; in ReadMemoryModule() 290 elf_eheader.e_phnum * elf_eheader.e_phentsize; in ReadMemoryModule()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/BinaryFormat/ |
| H A D | ELF.h | 72 Elf32_Half e_phnum; // Number of entries in the program header table member 98 Elf64_Half e_phnum; member
|