Lines Matching refs:ehdr
72 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; in ElfW2()
78 if (phnum == 0 || ehdr->e_phoff == 0) in ElfW2()
88 || ehdr->e_phoff > elf->maximum_size in ElfW2()
89 || elf->maximum_size - ehdr->e_phoff < size) in ElfW2()
99 if (unlikely (ehdr->e_phoff >= elf->maximum_size) in ElfW2()
100 || unlikely (elf->maximum_size - ehdr->e_phoff < size)) in ElfW2()
109 + elf->start_offset + ehdr->e_phoff); in ElfW2()
110 if (ehdr->e_ident[EI_DATA] == MY_ELFDATA in ElfW2()
136 if (ehdr->e_ident[EI_DATA] == MY_ELFDATA) in ElfW2()
193 elf->start_offset + ehdr->e_phoff); in ElfW2()
205 if (ehdr->e_ident[EI_DATA] != MY_ELFDATA) in ElfW2()