Home
last modified time | relevance | path

Searched refs:e_phnum (Results 1 – 25 of 55) sorted by relevance

123

/src/contrib/elftoolchain/libelf/
H A Dgelf_ehdr.c78 d->e_phnum = eh32->e_phnum; in gelf_getehdr()
161 eh32->e_phnum = s->e_phnum; in gelf_update_ehdr()
H A Dlibelf_extended.c129 ((Elf32_Ehdr *) eh)->e_phnum = phnum & 0xFFFFU; in _libelf_setphnum()
131 ((Elf64_Ehdr *) eh)->e_phnum = phnum & 0xFFFFU; in _libelf_setphnum()
H A Dlibelf_ehdr.c179 phnum = ((Elf32_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr()
184 phnum = ((Elf64_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr()
H A Delf_types.m4112 `e_phnum, HALF',
129 `e_phnum, HALF',
/src/libexec/rtld-elf/
H A Dmap_object.c48 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()
/src/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Doutput.c488 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()
/src/contrib/file/src/
H A Delfclass.h39 phnum = elf_getu16(swap, elfhdr.e_phnum);
52 phnum = elf_getu16(swap, elfhdr.e_phnum);
H A Dreadelf.h103 Elf32_Half e_phnum; member
120 Elf64_Half e_phnum; member
/src/lib/libkvm/
H A Dkvm_powerpc.c121 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 Dkvm_powerpc64.c124 _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()
/src/sys/kern/
H A Dkern_dump.c326 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 Dimgact_elf.c489 (u_int)hdr->e_phentsize * hdr->e_phnum <= PAGE_SIZE - hdr->e_phoff); in phdr_in_zero_page()
743 for (i = 0; i < hdr->e_phnum; i++) { in load_sections()
943 for (i = 0; i < hdr->e_phnum; i++) { in enforce_limits()
1174 for (i = 0; i < hdr->e_phnum; i++) { in __CONCAT()
1202 hdr->e_phoff + hdr->e_phnum * hdr->e_phentsize <= in __CONCAT()
1423 elf_auxargs->phnum = hdr->e_phnum; in __CONCAT()
1954 ehdr->e_phnum = numsegs + 1; in puthdr()
1957 ehdr->e_phnum = PN_XNUM; in puthdr()
2937 for (i = 0; i < hdr->e_phnum; i++) { in check_note()
2941 for (j = 0; j < hdr->e_phnum; j++) { in check_note()
/src/lib/libprocstat/
H A Dcore.c165 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()
/src/usr.bin/elfctl/
H A Delfctl.c182 if (!print_file_features(elf, ehdr.e_phnum, fd, in main()
187 } else if (!edit_file_features(elf, ehdr.e_phnum, fd, in main()
/src/sys/arm64/arm64/
H A Delf_machdep.c385 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()
/src/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/
H A DELFHeader.cpp106 e_phnum = section_zero.sh_info; in ParseHeaderExtension()
146 e_phnum = e_phnum_hdr; in Parse()
H A DELFHeader.h75 elf_word e_phnum; ///< Number of program header entries. member
/src/sys/sys/
H A Delf32.h66 Elf32_Half e_phnum; /* Number of program header entries. */ member
H A Delf64.h75 Elf64_Half e_phnum; /* Number of program header entries. */ member
/src/stand/common/
H A Dload_elf.c145 CONVERT_FIELD(b, e_phnum, e); \ in elf_header_convert()
623 if ((ehdr->e_phoff + ehdr->e_phnum * sizeof(*phdr)) > ef->firstlen) {
630 for (i = 0; i < ehdr->e_phnum; i++) {
750 for (j = 0; j < ehdr->e_phnum; j++) {
843 for (i = 0; i < ehdr->e_phnum; i++) {
/src/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c154 dst->e_phnum = src->e_phnum; in ehdr_to_gelf()
/src/contrib/llvm-project/compiler-rt/lib/profile/
H A DInstrProfilingPlatformLinux.c188 for (I = 0; I < ElfHeader->e_phnum; I++) { in __llvm_write_binary_ids()
/src/stand/kboot/libkboot/
H A Ddfk.c239 for (int i = 0; i < hdr->e_phnum; i++) { in read_at_address()
/src/contrib/llvm-project/lldb/source/Plugins/DynamicLoader/FreeBSD-Kernel/
H A DDynamicLoaderFreeBSDKernel.cpp282 elf_eheader.e_phnum * elf_eheader.e_phentsize; in ReadMemoryModule()
290 elf_eheader.e_phnum * elf_eheader.e_phentsize; in ReadMemoryModule()
/src/contrib/llvm-project/llvm/include/llvm/Object/
H A DELF.h376 if (getHeader().e_phnum && getHeader().e_phentsize != sizeof(Elf_Phdr)) in program_headers()
381 (uint64_t)getHeader().e_phnum * getHeader().e_phentsize; in program_headers()
387 ", e_phnum = " + Twine(getHeader().e_phnum) + in program_headers()
391 return ArrayRef(Begin, Begin + getHeader().e_phnum); in program_headers()

123