Lines Matching refs:ehdr
107 } ehdr;
117 .d_buf = &ehdr,
118 .d_size = sizeof ehdr,
137 phoff = ehdr.e32.e_phoff;
138 phnum = ehdr.e32.e_phnum;
139 phentsize = ehdr.e32.e_phentsize;
147 shdrs_end = ehdr.e32.e_shoff + ehdr.e32.e_shnum * ehdr.e32.e_shentsize;
154 phoff = ehdr.e64.e_phoff;
155 phnum = ehdr.e64.e_phnum;
156 phentsize = ehdr.e64.e_phentsize;
159 /* See the NOTE above for shdrs_end and ehdr.e32.e_shnum. */
160 shdrs_end = ehdr.e64.e_shoff + ehdr.e64.e_shnum * ehdr.e64.e_shentsize;
200 bool class32 = ehdr.e32.e_ident[EI_CLASS] == ELFCLASS32;
229 if (! elf32_xlatetom (&xlateto, &xlatefrom, ehdr.e32.e_ident[EI_DATA]))
234 if (! elf64_xlatetom (&xlateto, &xlatefrom, ehdr.e64.e_ident[EI_DATA]))
323 ehdr.e32.e_shoff = 0;
324 ehdr.e32.e_shnum = 0;
325 ehdr.e32.e_shstrndx = 0;
329 ehdr.e64.e_shoff = 0;
330 ehdr.e64.e_shnum = 0;
331 ehdr.e64.e_shstrndx = 0;
341 xlatefrom.d_size = xlateto.d_size = sizeof ehdr.e32;
342 xlatefrom.d_buf = &ehdr.e32;
344 ehdr.e32.e_ident[EI_DATA]) == NULL)
349 xlatefrom.d_size = xlateto.d_size = sizeof ehdr.e64;
350 xlatefrom.d_buf = &ehdr.e64;
352 ehdr.e64.e_ident[EI_DATA]) == NULL)