| /freebsd/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/libexec/rtld-elf/ |
| H A D | map_object.c | 48 return (hdr->e_phoff + hdr->e_phnum * sizeof(Elf_Phdr) <= page_size); in phdr_in_zero_page() 107 phsize = hdr->e_phnum * sizeof(phdr[0]); in map_object() 108 phlimit = phdr + hdr->e_phnum; in map_object() 116 segs = alloca(sizeof(segs[0]) * hdr->e_phnum); in map_object() 290 hdr->e_phoff + hdr->e_phnum * sizeof(Elf_Phdr)) { in map_object() 352 munmap(phdr, hdr->e_phnum * sizeof(phdr[0])); in map_object() 423 phdr = mmap(NULL, hdr->e_phnum * sizeof(phdr[0]), PROT_READ, in get_elf_header()
|
| /freebsd/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/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/contrib/llvm-project/libc/src/__support/OSUtil/linux/ |
| H A D | vdso.cpp | 132 static cpp::optional<PhdrInfo> from(ElfW(Phdr) * vdso_phdr, size_t e_phnum, in from() 140 for (size_t i = 0; i < e_phnum; ++i) { in from() 220 PhdrInfo::from(vdso_phdr, vdso_ehdr->e_phnum, vdso_ehdr_addr); in initialize_vdso_global_cache()
|
| /freebsd/lib/libkvm/ |
| H A D | kvm_powerpc.c | 121 mapsz = be16toh(vm->eh->e_phentsize) * be16toh(vm->eh->e_phnum) + in powerpc_maphdrs() 154 nph = be16toh(vm->eh->e_phnum); in powerpc_va2off()
|
| H A D | kvm_powerpc64.c | 124 _kvm16toh(kd, vm->eh->e_phnum) + _kvm64toh(kd, vm->eh->e_phoff); in powerpc_maphdrs() 157 nph = _kvm16toh(kd, vm->eh->e_phnum); in powerpc64_va2off()
|
| /freebsd/sys/kern/ |
| H A D | imgact_elf.c | 494 (u_int)hdr->e_phentsize * hdr->e_phnum <= PAGE_SIZE - hdr->e_phoff); in __elfN() 748 for (i = 0; i < hdr->e_phnum; i++) { in __elfN() 862 if (hdr->e_phnum > __elfN(phnums)) { in __elfN() 871 phdr = m_phdrs = malloc(hdr->e_phnum * sizeof(Elf_Phdr), in __elfN() 875 hdr->e_phnum * sizeof(Elf_Phdr), hdr->e_phoff, in __elfN() 960 for (i = 0; i < hdr->e_phnum; i++) { in __elfN() 1161 if (hdr->e_phoff + hdr->e_phnum * hdr->e_phentsize < hdr->e_phoff) { in __CONCAT() 1165 if (hdr->e_phnum > __elfN(phnums)) { in __CONCAT() 1167 hdr->e_phnum, __elfN(phnums)); in __CONCAT() 1175 phdr = m_phdrs = malloc(hdr->e_phnum * sizeo in __CONCAT() [all...] |
| 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()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/profile/ |
| H A D | InstrProfilingPlatformLinux.c | 200 for (uint32_t I = 0; I < ElfHeader->e_phnum; I++) { in __llvm_write_binary_ids() 209 for (uint32_t I = 0; I < ElfHeader->e_phnum; I++) { in __llvm_write_binary_ids()
|
| /freebsd/lib/libprocstat/ |
| H A D | core.c | 165 for (i = 0; i < ehdr.e_phnum; i++) { in procstat_core_open() 173 if (i == ehdr.e_phnum) { in procstat_core_open() 349 for (i = 0; i < core->pc_ehdr.e_phnum; i++) { in core_read_mem()
|
| /freebsd/usr.bin/elfctl/ |
| H A D | elfctl.c | 182 if (!print_file_features(elf, ehdr.e_phnum, fd, in main() 187 } else if (!edit_file_features(elf, ehdr.e_phnum, fd, in main()
|
| /freebsd/sys/arm64/arm64/ |
| H A D | elf_machdep.c | 385 for (i = 0; i < hdr->e_phnum; i++) { in arm64_exec_protect() 396 for (i = 0; i < hdr->e_phnum; i++) { in arm64_exec_protect()
|
| /freebsd/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/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/stand/common/ |
| H A D | load_elf.c | 145 CONVERT_FIELD(b, e_phnum, e); \ in elf_header_convert() 624 if ((ehdr->e_phoff + ehdr->e_phnum * sizeof(*phdr)) > ef->firstlen) { 631 for (i = 0; i < ehdr->e_phnum; i++) { 751 for (j = 0; j < ehdr->e_phnum; j++) { 844 for (i = 0; i < ehdr->e_phnum; i++) {
|
| /freebsd/cddl/contrib/opensolaris/lib/libctf/common/ |
| H A D | ctf_lib.c | 154 dst->e_phnum = src->e_phnum; in ehdr_to_gelf()
|
| /freebsd/stand/kboot/libkboot/ |
| H A D | dfk.c | 239 for (int i = 0; i < hdr->e_phnum; i++) { in read_at_address()
|
| /freebsd/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()
|