Home
last modified time | relevance | path

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

123

/freebsd-12.1/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.c175 phnum = ((Elf32_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr()
180 phnum = ((Elf64_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr()
H A Delf_types.m4112 `e_phnum, HALF',
129 `e_phnum, HALF',
/freebsd-12.1/contrib/binutils/bfd/
H A Delfcore.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()
H A Delfcode.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()
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 Doutput.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-12.1/sys/arm/arm/
H A Delf_trampoline.c313 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 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
/freebsd-12.1/libexec/rtld-elf/
H A Dmap_object.c107 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 Dexternal.h51 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 Dinternal.h55 unsigned int e_phnum; /* Program header table entry count */ member
/freebsd-12.1/sys/kern/
H A Dkern_dump.c323 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 Dimgact_elf.c672 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 Delf_trampoline.c132 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 Dkvm_powerpc64.c124 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 Dkvm_powerpc.c124 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 Dcore.c128 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 Dldd.c332 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 DELFHeader.cpp109 e_phnum = section_zero.sh_info; in ParseHeaderExtension()
149 e_phnum = e_phnum_hdr; in Parse()
/freebsd-12.1/stand/common/
H A Dload_elf.c144 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 Delf32.h68 Elf32_Half e_phnum; /* Number of program header entries. */ member
H A Delf64.h77 Elf64_Half e_phnum; /* Number of program header entries. */ member
/freebsd-12.1/usr.bin/elf2aout/
H A Delf2aout.c130 phnum = xe16toh(e->e_phnum); in main()

123