Lines Matching refs:ehdr
111 Elf_Ehdr *ehdr;
145 ehdr = (Elf_Ehdr *)hbuf;
146 if (ehdr->e_ident[0] != ELFMAG0 || ehdr->e_ident[1] != ELFMAG1 ||
147 ehdr->e_ident[2] != ELFMAG2 || ehdr->e_ident[3] != ELFMAG3 ||
148 ehdr->e_type != ET_DYN || ehdr->e_machine != MACHID) {
161 phdp = (Elf_Phdr *)(hbuf + ehdr->e_phoff);
162 for (i = 0; i < ehdr->e_phnum; i++, phdp++) {
224 phdp = (Elf_Phdr *)(hbuf + ehdr->e_phoff);
229 for (i = 0; i < ehdr->e_phnum; i++, phdp++) {
335 (Elf_Phdr *)((char *)libaddr + ehdr->e_phoff), ehdr->e_phnum,type,