Lines Matching refs:ehdr
101 void *ehdr;
128 ehdr = (void *) e->e_u.e_elf.e_ehdr.e_ehdr32;
130 ehdr = (void *) e->e_u.e_elf.e_ehdr.e_ehdr64;
132 if (ehdr != NULL) /* already have a translated ehdr */
133 return (ehdr);
147 if ((ehdr = calloc((size_t) 1, msz)) == NULL) {
153 e->e_u.e_elf.e_ehdr.e_ehdr32 = ehdr;
154 EHDR_INIT(ehdr,32);
156 e->e_u.e_elf.e_ehdr.e_ehdr64 = ehdr;
157 EHDR_INIT(ehdr,64);
164 return (ehdr);
167 (*xlator)(ehdr, e->e_rawfile, (size_t) 1,
175 phnum = ((Elf32_Ehdr *) ehdr)->e_phnum;
176 shnum = ((Elf32_Ehdr *) ehdr)->e_shnum;
177 shoff = ((Elf32_Ehdr *) ehdr)->e_shoff;
178 strndx = ((Elf32_Ehdr *) ehdr)->e_shstrndx;
180 phnum = ((Elf64_Ehdr *) ehdr)->e_phnum;
181 shnum = ((Elf64_Ehdr *) ehdr)->e_shnum;
182 shoff = ((Elf64_Ehdr *) ehdr)->e_shoff;
183 strndx = ((Elf64_Ehdr *) ehdr)->e_shstrndx;
200 return (ehdr);