Home
last modified time | relevance | path

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

123

/freebsd-11-stable/contrib/elftoolchain/libelf/
HDgelf_ehdr.c78 d->e_phnum = eh32->e_phnum; in gelf_getehdr()
161 eh32->e_phnum = s->e_phnum; in gelf_update_ehdr()
HDlibelf_extended.c129 ((Elf32_Ehdr *) eh)->e_phnum = phnum & 0xFFFFU; in _libelf_setphnum()
131 ((Elf64_Ehdr *) eh)->e_phnum = phnum & 0xFFFFU; in _libelf_setphnum()
HDlibelf_ehdr.c179 phnum = ((Elf32_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr()
184 phnum = ((Elf64_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr()
HDelf_types.m4112 `e_phnum, HALF',
129 `e_phnum, HALF',
/freebsd-11-stable/libexec/rtld-elf/
HDmap_object.c50 return (hdr->e_phoff + hdr->e_phnum * sizeof(Elf_Phdr) <= in phdr_in_zero_page()
111 phsize = hdr->e_phnum * sizeof(phdr[0]); in map_object()
112 phlimit = phdr + hdr->e_phnum; in map_object()
121 segs = alloca(sizeof(segs[0]) * hdr->e_phnum); in map_object()
276 (hdr->e_phoff + hdr->e_phnum * sizeof (Elf_Phdr))) { in map_object()
334 munmap(phdr, hdr->e_phnum * sizeof(phdr[0])); in map_object()
396 phdr = mmap(NULL, hdr->e_phnum * sizeof(phdr[0]), in get_elf_header()
/freebsd-11-stable/contrib/binutils/bfd/
HDelfcore.h189 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()
HDelfcode.h247 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()
1638 if (i_ehdr.e_phentsize != sizeof (Elf_External_Phdr) || i_ehdr.e_phnum == 0) in NAME()
1644 x_phdrs = bfd_malloc (i_ehdr.e_phnum * (sizeof *x_phdrs + sizeof *i_phdrs)); in NAME()
1651 i_ehdr.e_phnum * sizeof x_phdrs[0]); in NAME()
[all …]
/freebsd-11-stable/cddl/contrib/opensolaris/tools/ctf/cvt/
HDoutput.c489 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-11-stable/contrib/file/src/
HDelfclass.h39 phnum = elf_getu16(swap, elfhdr.e_phnum);
52 phnum = elf_getu16(swap, elfhdr.e_phnum);
HDreadelf.h103 Elf32_Half e_phnum; member
120 Elf64_Half e_phnum; member
/freebsd-11-stable/contrib/binutils/include/elf/
HDexternal.h51 unsigned char e_phnum[2]; /* Program header table entry count */ member
68 unsigned char e_phnum[2]; /* Program header table entry count */ member
HDinternal.h55 unsigned int e_phnum; /* Program header table entry count */ member
/freebsd-11-stable/sys/arm/arm/
HDelf_trampoline.c514 eh->e_phnum * sizeof(phdr[0])); in load_kernel()
517 for (i = 0; i < eh->e_phnum; i++) { in load_kernel()
531 for (j = 0; j < eh->e_phnum; j++) { in load_kernel()
541 j = eh->e_phnum; in load_kernel()
583 j = eh->e_phnum; in load_kernel()
/freebsd-11-stable/sys/kern/
HDkern_dump.c314 ehdr.e_phnum = dumpsys_foreach_chunk(cb_size, &dumpsize) + in dumpsys_generic()
316 hdrsz = ehdr.e_phoff + ehdr.e_phnum * ehdr.e_phentsize; in dumpsys_generic()
333 ehdr.e_phnum - DUMPSYS_NUM_AUX_HDRS); in dumpsys_generic()
/freebsd-11-stable/sys/mips/mips/
HDelf_trampoline.c130 eh->e_phnum * sizeof(phdr[0])); in load_kernel()
153 for (i = 0; i < eh->e_phnum; i++) { in load_kernel()
/freebsd-11-stable/lib/libkvm/
HDkvm_powerpc.c122 mapsz = be16toh(vm->eh->e_phentsize) * be16toh(vm->eh->e_phnum) + in powerpc_maphdrs()
155 nph = be16toh(vm->eh->e_phnum); in powerpc_va2off()
HDkvm_powerpc64.c122 mapsz = be16toh(vm->eh->e_phentsize) * be16toh(vm->eh->e_phnum) + in powerpc_maphdrs()
156 nph = be16toh(vm->eh->e_phnum); in powerpc64_va2off()
/freebsd-11-stable/lib/libprocstat/
HDcore.c126 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-11-stable/usr.bin/ldd/
HDldd.c338 for (i = 0; i < hdr.elf32.e_phnum; i++) { in is_executable()
406 for (i = 0; i < hdr.elf.e_phnum; i++) { in is_executable()
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/
HDELFHeader.cpp106 e_phnum = section_zero.sh_info; in ParseHeaderExtension()
146 e_phnum = e_phnum_hdr; in Parse()
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Object/
HDELF.h194 if (getHeader()->e_phnum && getHeader()->e_phentsize != sizeof(Elf_Phdr)) in program_headers()
198 (getHeader()->e_phnum * getHeader()->e_phentsize) > in program_headers()
203 ", e_phnum = " + Twine(getHeader()->e_phnum) + in program_headers()
207 return makeArrayRef(Begin, Begin + getHeader()->e_phnum); in program_headers()
/freebsd-11-stable/stand/common/
HDload_elf.c144 CONVERT_FIELD(b, e_phnum, e); \ in elf_header_convert()
518 if ((ehdr->e_phoff + ehdr->e_phnum * sizeof(*phdr)) > ef->firstlen) { in __elfN()
525 for (i = 0; i < ehdr->e_phnum; i++) { in __elfN()
646 for (j = 0; j < ehdr->e_phnum; j++) { in __elfN()
761 for (i = 0; i < ehdr->e_phnum; i++) { in __elfN()
/freebsd-11-stable/sys/sys/
HDelf32.h66 Elf32_Half e_phnum; /* Number of program header entries. */ member
HDelf64.h75 Elf64_Half e_phnum; /* Number of program header entries. */ member
/freebsd-11-stable/usr.bin/elf2aout/
HDelf2aout.c130 phnum = xe16toh(e->e_phnum); in main()

123