Lines Matching refs:phnum
123 uint_fast16_t phnum; in elf_from_remote_memory() local
138 phnum = ehdr.e32.e_phnum; in elf_from_remote_memory()
140 if (phentsize != sizeof (Elf32_Phdr) || phnum == 0) in elf_from_remote_memory()
155 phnum = ehdr.e64.e_phnum; in elf_from_remote_memory()
157 if (phentsize != sizeof (Elf64_Phdr) || phnum == 0) in elf_from_remote_memory()
172 xlatefrom.d_size = phnum * phentsize; in elf_from_remote_memory()
174 if ((size_t) nread >= phoff + phnum * phentsize) in elf_from_remote_memory()
181 if (initial_bufsize < (size_t)phnum * phentsize) in elf_from_remote_memory()
183 unsigned char *newbuf = realloc (buffer, phnum * phentsize); in elf_from_remote_memory()
193 phnum * phentsize, phnum * phentsize); in elf_from_remote_memory()
202 if (unlikely (phnum > SIZE_MAX / phdr_size)) in elf_from_remote_memory()
207 const size_t phdrsp_bytes = phnum * phdr_size; in elf_from_remote_memory()
224 Elf32_Phdr (*p32)[phnum] = phdrsp; in elf_from_remote_memory()
225 Elf64_Phdr (*p64)[phnum] = phdrsp; in elf_from_remote_memory()
238 for (uint_fast16_t i = 0; i < phnum; ++i) in elf_from_remote_memory()
295 for (uint_fast16_t i = 0; i < phnum; ++i) in elf_from_remote_memory()