Searched refs:e_phnum (Results 1 - 25 of 62) sorted by relevance

123

/freebsd-11-stable/contrib/elftoolchain/libelf/
H A Dgelf_ehdr.c78 d->e_phnum = eh32->e_phnum;
161 eh32->e_phnum = s->e_phnum;
H A Dlibelf_extended.c129 ((Elf32_Ehdr *) eh)->e_phnum = phnum & 0xFFFFU;
131 ((Elf64_Ehdr *) eh)->e_phnum = phnum & 0xFFFFU;
H A Dlibelf_ehdr.c179 phnum = ((Elf32_Ehdr *) ehdr)->e_phnum;
184 phnum = ((Elf64_Ehdr *) ehdr)->e_phnum;
/freebsd-11-stable/contrib/binutils/include/elf/
H A Dexternal.h51 unsigned char e_phnum[2]; /* Program header table entry count */ member in struct:__anon501
68 unsigned char e_phnum[2]; /* Program header table entry count */ member in struct:__anon502
H A Dinternal.h55 unsigned int e_phnum; /* Program header table entry count */ member in struct:elf_internal_ehdr
/freebsd-11-stable/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 in struct:__anon34
120 Elf64_Half e_phnum; member in struct:__anon35
/freebsd-11-stable/contrib/binutils/bfd/
H A Delfcore.h189 amt = sizeof (*i_phdrp) * i_ehdrp->e_phnum;
197 for (phindex = 0; phindex < i_ehdrp->e_phnum; ++phindex)
225 for (phindex = 0; phindex < i_ehdrp->e_phnum; ++phindex)
H A Delfcode.h248 dst->e_phnum = H_GET_16 (abfd, src->e_phnum);
278 H_PUT_16 (abfd, src->e_phnum, dst->e_phnum);
626 if (i_ehdrp->e_phnum > 0)
819 if (i_ehdrp->e_phnum == 0)
826 amt = i_ehdrp->e_phnum * sizeof (Elf_Internal_Phdr);
833 for (i = 0; i < i_ehdrp->e_phnum; i++, i_phdr++)
1552 fprintf (stderr, "e_phnum = %ld\n", (long) ehdrp->e_phnum);
[all...]
/freebsd-11-stable/libexec/rtld-elf/
H A Dmap_object.c50 return (hdr->e_phoff + hdr->e_phnum * sizeof(Elf_Phdr) <=
111 phsize = hdr->e_phnum * sizeof(phdr[0]);
112 phlimit = phdr + hdr->e_phnum;
121 segs = alloca(sizeof(segs[0]) * hdr->e_phnum);
276 (hdr->e_phoff + hdr->e_phnum * sizeof (Elf_Phdr))) {
334 munmap(phdr, hdr->e_phnum * sizeof(phdr[0]));
396 phdr = mmap(NULL, hdr->e_phnum * sizeof(phdr[0]),
/freebsd-11-stable/sys/mips/mips/
H A Delf_trampoline.c130 eh->e_phnum * sizeof(phdr[0]));
153 for (i = 0; i < eh->e_phnum; i++) {
/freebsd-11-stable/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Doutput.c489 if (sehdr.e_phnum != 0) {
491 if (gelf_newphdr(dst, sehdr.e_phnum) == NULL)
494 for (i = 0; i < sehdr.e_phnum; i++) {
558 if (changing && sehdr.e_phnum != 0) {
614 if (sehdr.e_phnum != 0)
674 if (changing && sehdr.e_phnum != 0) {
693 if (sehdr.e_phnum != 0) {
/freebsd-11-stable/sys/kern/
H A Dkern_dump.c314 ehdr.e_phnum = dumpsys_foreach_chunk(cb_size, &dumpsize) +
316 hdrsz = ehdr.e_phoff + ehdr.e_phnum * ehdr.e_phentsize;
333 ehdr.e_phnum - DUMPSYS_NUM_AUX_HDRS);
/freebsd-11-stable/lib/libkvm/
H A Dkvm_powerpc.c122 mapsz = be16toh(vm->eh->e_phentsize) * be16toh(vm->eh->e_phnum) +
155 nph = be16toh(vm->eh->e_phnum);
H A Dkvm_powerpc64.c122 mapsz = be16toh(vm->eh->e_phentsize) * be16toh(vm->eh->e_phnum) +
156 nph = be16toh(vm->eh->e_phnum);
/freebsd-11-stable/sys/arm/arm/
H A Delf_trampoline.c514 eh->e_phnum * sizeof(phdr[0]));
517 for (i = 0; i < eh->e_phnum; i++) {
531 for (j = 0; j < eh->e_phnum; j++) {
541 j = eh->e_phnum;
583 j = eh->e_phnum;
/freebsd-11-stable/lib/libprocstat/
H A Dcore.c126 for (i = 0; i < ehdr.e_phnum; i++) {
134 if (i == ehdr.e_phnum) {
310 for (i = 0; i < core->pc_ehdr.e_phnum; i++) {
/freebsd-11-stable/sys/sys/
H A Delf64.h75 Elf64_Half e_phnum; /* Number of program header entries. */ member in struct:__anon8483
H A Delf32.h66 Elf32_Half e_phnum; /* Number of program header entries. */ member in struct:__anon8465
/freebsd-11-stable/usr.bin/elf2aout/
H A Delf2aout.c130 phnum = xe16toh(e->e_phnum);
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/
H A DELFHeader.h75 elf_word e_phnum; ///< Number of program header entries. member in struct:elf::ELFHeader
H A DELFHeader.cpp106 e_phnum = section_zero.sh_info;
140 // Read e_ehsize, e_phentsize, e_phnum, e_shentsize, e_shnum and e_shstrndx.
144 // Initialize e_phnum, e_shnum, and e_shstrndx with the values read from the
146 e_phnum = e_phnum_hdr;
/freebsd-11-stable/usr.bin/ldd/
H A Dldd.c338 for (i = 0; i < hdr.elf32.e_phnum; i++) {
406 for (i = 0; i < hdr.elf.e_phnum; i++) {
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c153 dst->e_phnum = src->e_phnum;
/freebsd-11-stable/contrib/gdb/gdb/
H A Dnto-tdep.c248 for (i = 0; i < elf_elfheader (abfd)->e_phnum; i++, phdr++)

Completed in 226 milliseconds

123