Lines Matching refs:ehdr
78 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (file->elf, &ehdr_mem);
79 if (ehdr == NULL)
89 if (ehdr->e_type != ET_REL)
153 mod->e_type = ehdr->e_type;
304 /* Decode the section. It consists of the original ehdr, phdrs,
311 } ehdr;
314 .d_buf = &ehdr,
315 .d_size = sizeof ehdr,
332 if (ehdr.e32.e_ident[EI_CLASS] == ELFCLASS32)
334 if (ehdr.e32.e_shentsize != shentsize
335 || ehdr.e32.e_phentsize != phentsize)
337 phnum = ehdr.e32.e_phnum;
338 shnum = ehdr.e32.e_shnum;
342 if (ehdr.e64.e_shentsize != shentsize
343 || ehdr.e64.e_phentsize != phentsize)
345 phnum = ehdr.e64.e_phnum;
346 shnum = ehdr.e64.e_shnum;
388 bool class32 = ehdr.e32.e_ident[EI_CLASS] == ELFCLASS32;
400 ehdr.e32.e_ident[EI_DATA]) == NULL))
445 ehdr.e32.e_ident[EI_DATA]) == NULL))
699 GElf_Ehdr *ehdr)
709 size_t entsz = SH_ENTSIZE_HASH (ehdr);
821 GElf_Ehdr *ehdr = gelf_getehdr (mod->main.elf, &ehdr_mem);
887 translate_offs (0, mod, phnum, addrs, strsz, ehdr);
889 translate_offs (mod->main_bias, mod, phnum, addrs, strsz, ehdr);