Lines Matching defs:ehdr
255 Elf_Ehdr *ehdr;
277 ehdr = elf_newehdr(e);
278 if (!ehdr) {
279 warnx("cannot get ehdr");
283 ehdr->e_ident[EI_DATA] = GEN_ELF_ENDIAN;
284 ehdr->e_ident[EI_CLASS] = GEN_ELF_CLASS;
285 ehdr->e_machine = GEN_ELF_ARCH;
286 ehdr->e_type = ET_DYN;
287 ehdr->e_entry = GEN_ELF_TEXT_OFFSET;
288 ehdr->e_version = EV_CURRENT;
289 ehdr->e_shstrndx= unwinding ? 4 : 2; /* shdr index for section name */