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

123

/freebsd-13-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-13-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:__anon753
120 Elf64_Half e_phnum; member in struct:__anon754
/freebsd-13-stable/libexec/rtld-elf/
H A Dmap_object.c52 return (hdr->e_phoff + hdr->e_phnum * sizeof(Elf_Phdr) <=
114 phsize = hdr->e_phnum * sizeof(phdr[0]);
115 phlimit = phdr + hdr->e_phnum;
125 segs = alloca(sizeof(segs[0]) * hdr->e_phnum);
285 (hdr->e_phoff + hdr->e_phnum * sizeof (Elf_Phdr))) {
342 munmap(phdr, hdr->e_phnum * sizeof(phdr[0]));
404 phdr = mmap(NULL, hdr->e_phnum * sizeof(phdr[0]),
/freebsd-13-stable/sys/mips/mips/
H A Delf_trampoline.c131 eh->e_phnum * sizeof(phdr[0]));
154 for (i = 0; i < eh->e_phnum; i++) {
/freebsd-13-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-13-stable/sys/kern/
H A Dkern_dump.c323 ehdr.e_phnum = dumpsys_foreach_chunk(cb_size, &dumpsize) +
325 hdrsz = ehdr.e_phoff + ehdr.e_phnum * ehdr.e_phentsize;
338 ehdr.e_phnum - DUMPSYS_NUM_AUX_HDRS);
H A Dimgact_elf.c460 (u_int)hdr->e_phentsize * hdr->e_phnum <= PAGE_SIZE - hdr->e_phoff);
714 for (i = 0; i < hdr->e_phnum; i++) {
895 for (i = 0; i < hdr->e_phnum; i++) {
1123 for (i = 0; i < hdr->e_phnum; i++) {
1140 hdr->e_phoff + hdr->e_phnum * hdr->e_phentsize
1327 elf_auxargs->phnum = hdr->e_phnum;
1998 ehdr->e_phnum = numsegs + 1;
2001 ehdr->e_phnum = PN_XNUM;
2778 for (i = 0; i < hdr->e_phnum; i++) {
2782 for (j = 0; j < hdr->e_phnum;
[all...]
/freebsd-13-stable/lib/libkvm/
H A Dkvm_powerpc.c124 mapsz = be16toh(vm->eh->e_phentsize) * be16toh(vm->eh->e_phnum) +
157 nph = be16toh(vm->eh->e_phnum);
H A Dkvm_powerpc64.c127 _kvm16toh(kd, vm->eh->e_phnum) + _kvm64toh(kd, vm->eh->e_phoff);
160 nph = _kvm16toh(kd, vm->eh->e_phnum);
/freebsd-13-stable/usr.bin/elfctl/
H A Delfctl.c179 if (!print_file_features(elf, ehdr.e_phnum, fd,
184 } else if (!edit_file_features(elf, ehdr.e_phnum, fd,
/freebsd-13-stable/lib/libprocstat/
H A Dcore.c128 for (i = 0; i < ehdr.e_phnum; i++) {
136 if (i == ehdr.e_phnum) {
312 for (i = 0; i < core->pc_ehdr.e_phnum; i++) {
/freebsd-13-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-13-stable/sys/sys/
H A Delf32.h68 Elf32_Half e_phnum; /* Number of program header entries. */ member in struct:__anon15799
H A Delf64.h77 Elf64_Half e_phnum; /* Number of program header entries. */ member in struct:__anon15817
/freebsd-13-stable/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c154 dst->e_phnum = src->e_phnum;
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Object/
H A DELF.h205 if (getHeader()->e_phnum && getHeader()->e_phentsize != sizeof(Elf_Phdr))
210 (uint64_t)getHeader()->e_phnum * getHeader()->e_phentsize;
216 ", e_phnum = " + Twine(getHeader()->e_phnum) +
220 return makeArrayRef(Begin, Begin + getHeader()->e_phnum);
/freebsd-13-stable/sys/compat/linux/
H A Dlinux_vdso.c164 for (i = 0; i < ehdr->e_phnum; i++) {
/freebsd-13-stable/stand/common/
H A Dload_elf.c156 CONVERT_FIELD(b, e_phnum, e); \
567 if ((ehdr->e_phoff + ehdr->e_phnum * sizeof(*phdr)) > ef->firstlen) {
574 for (i = 0; i < ehdr->e_phnum; i++) {
696 for (j = 0; j < ehdr->e_phnum; j++) {
811 for (i = 0; i < ehdr->e_phnum; i++) {
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_report.cpp268 ArrayRef<const ElfW(Phdr)>(phdr_begin, phdr_begin + ehdr->e_phnum)) {
279 HwasanGlobalsFor(load_bias, phdr_begin, ehdr->e_phnum))
/freebsd-13-stable/usr.sbin/kldxref/
H A Def.c606 phlen = hdr->e_phnum * sizeof(Elf_Phdr);
611 phlimit = phdr + hdr->e_phnum;
/freebsd-13-stable/usr.bin/ldd/
H A Dldd.c433 for (i = 0; i < ehdr.e_phnum; i++) {

Completed in 301 milliseconds

123