Lines Matching defs:ehdr
82 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (file->elf, &ehdr_mem);
83 if (ehdr == NULL)
93 if (ehdr->e_type != ET_REL)
157 mod->e_type = ehdr->e_type;
308 /* Decode the section. It consists of the original ehdr, phdrs,
315 } ehdr;
318 .d_buf = &ehdr,
319 .d_size = sizeof ehdr,
336 if (ehdr.e32.e_ident[EI_CLASS] == ELFCLASS32)
338 if (ehdr.e32.e_shentsize != shentsize
339 || ehdr.e32.e_phentsize != phentsize)
341 phnum = ehdr.e32.e_phnum;
342 shnum = ehdr.e32.e_shnum;
346 if (ehdr.e64.e_shentsize != shentsize
347 || ehdr.e64.e_phentsize != phentsize)
349 phnum = ehdr.e64.e_phnum;
350 shnum = ehdr.e64.e_shnum;
394 bool class32 = ehdr.e32.e_ident[EI_CLASS] == ELFCLASS32;
406 ehdr.e32.e_ident[EI_DATA]) == NULL))
451 ehdr.e32.e_ident[EI_DATA]) == NULL))
705 GElf_Ehdr *ehdr)
715 size_t entsz = SH_ENTSIZE_HASH (ehdr);
827 GElf_Ehdr *ehdr = gelf_getehdr (mod->main.elf, &ehdr_mem);
893 translate_offs (0, mod, phnum, addrs, strsz, ehdr);
895 translate_offs (mod->main_bias, mod, phnum, addrs, strsz, ehdr);