Lines Matching refs:phnum
133 uint_fast16_t phnum; in elf_from_remote_memory() local
148 phnum = ehdr.e32.e_phnum; in elf_from_remote_memory()
150 if (phentsize != sizeof (Elf32_Phdr) || phnum == 0) in elf_from_remote_memory()
160 phnum = ehdr.e64.e_phnum; in elf_from_remote_memory()
162 if (phentsize != sizeof (Elf64_Phdr) || phnum == 0) in elf_from_remote_memory()
176 xlatefrom.d_size = phnum * phentsize; in elf_from_remote_memory()
178 if ((size_t) nread >= phoff + phnum * phentsize) in elf_from_remote_memory()
185 if (initial_bufsize < phnum * phentsize) in elf_from_remote_memory()
187 unsigned char *newbuf = realloc (buffer, phnum * phentsize); in elf_from_remote_memory()
196 phnum * phentsize, phnum * phentsize); in elf_from_remote_memory()
205 Elf32_Phdr p32[phnum]; in elf_from_remote_memory()
206 Elf64_Phdr p64[phnum]; in elf_from_remote_memory()
240 for (uint_fast16_t i = 0; i < phnum; ++i) in elf_from_remote_memory()
250 for (uint_fast16_t i = 0; i < phnum; ++i) in elf_from_remote_memory()
297 for (uint_fast16_t i = 0; i < phnum; ++i) in elf_from_remote_memory()
324 for (uint_fast16_t i = 0; i < phnum; ++i) in elf_from_remote_memory()