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