Lines Matching refs:phdr
54 Elf32_Phdr *phdr; in extract32() local
88 phdr = (Elf32_Phdr *)(allphdrs + eh->e_phentsize * i); in extract32()
90 if (phdr->p_type != PT_LOAD) in extract32()
93 if (phdr->p_memsz == 0) in extract32()
96 bytes = ELFSEEK(phdr->p_offset); in extract32()
97 for (c = 0; c < phdr->p_filesz; ++c) { in extract32()
104 for (; c < phdr->p_memsz; ++c) { in extract32()
124 Elf64_Phdr *phdr; in extract64() local
158 phdr = (Elf64_Phdr *)(allphdrs + eh->e_phentsize * i); in extract64()
160 if (phdr->p_type != PT_LOAD) in extract64()
163 if (phdr->p_memsz == 0) in extract64()
166 bytes = ELFSEEK(phdr->p_offset); in extract64()
167 for (c = 0; c < phdr->p_filesz; ++c) { in extract64()
174 for (; c < phdr->p_memsz; ++c) { in extract64()