Lines Matching refs:ehdr
121 void *ehdr;
148 ehdr = (void *) e->e_u.e_elf.e_ehdr.e_ehdr32;
150 ehdr = (void *) e->e_u.e_elf.e_ehdr.e_ehdr64;
152 if (ehdr != NULL) /* already have a translated ehdr */
153 return (ehdr);
167 if ((ehdr = calloc((size_t) 1, msz)) == NULL) {
173 e->e_u.e_elf.e_ehdr.e_ehdr32 = ehdr;
174 EHDR_INIT(ehdr,32);
176 e->e_u.e_elf.e_ehdr.e_ehdr64 = ehdr;
177 EHDR_INIT(ehdr,64);
184 return (ehdr);
187 (*xlator)(ehdr, e->e_rawfile, (size_t) 1,
195 phnum = ((Elf32_Ehdr *) ehdr)->e_phnum;
196 shnum = ((Elf32_Ehdr *) ehdr)->e_shnum;
197 shoff = ((Elf32_Ehdr *) ehdr)->e_shoff;
198 strndx = ((Elf32_Ehdr *) ehdr)->e_shstrndx;
200 phnum = ((Elf64_Ehdr *) ehdr)->e_phnum;
201 shnum = ((Elf64_Ehdr *) ehdr)->e_shnum;
202 shoff = ((Elf64_Ehdr *) ehdr)->e_shoff;
203 strndx = ((Elf64_Ehdr *) ehdr)->e_shstrndx;
220 return (ehdr);