Lines Matching refs:phdr
117 Elf32_Phdr *phdr; in filename__read_build_id() local
137 for (i = 0, phdr = buf; i < ehdr.e_phnum; i++, phdr++) { in filename__read_build_id()
142 phdr->p_type = bswap_32(phdr->p_type); in filename__read_build_id()
143 phdr->p_offset = bswap_32(phdr->p_offset); in filename__read_build_id()
144 phdr->p_filesz = bswap_32(phdr->p_filesz); in filename__read_build_id()
147 if (phdr->p_type != PT_NOTE) in filename__read_build_id()
150 buf_size = phdr->p_filesz; in filename__read_build_id()
151 offset = phdr->p_offset; in filename__read_build_id()
168 Elf64_Phdr *phdr; in filename__read_build_id() local
188 for (i = 0, phdr = buf; i < ehdr.e_phnum; i++, phdr++) { in filename__read_build_id()
193 phdr->p_type = bswap_32(phdr->p_type); in filename__read_build_id()
194 phdr->p_offset = bswap_64(phdr->p_offset); in filename__read_build_id()
195 phdr->p_filesz = bswap_64(phdr->p_filesz); in filename__read_build_id()
198 if (phdr->p_type != PT_NOTE) in filename__read_build_id()
201 buf_size = phdr->p_filesz; in filename__read_build_id()
202 offset = phdr->p_offset; in filename__read_build_id()