Lines Matching refs:ehdr
35 Elf32_Ehdr *ehdr; in main() local
63 ehdr = elf32_newehdr (elf); in main()
64 if (ehdr == NULL) in main()
74 printf (" %02x", ehdr->e_ident[i]); in main()
79 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry, in main()
80 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main()
81 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
82 ehdr->e_shnum, ehdr->e_shstrndx); in main()
85 ehdr->e_ident[0] = 42; in main()
86 ehdr->e_ident[4] = 1; in main()
87 ehdr->e_ident[5] = 1; in main()
88 ehdr->e_ident[6] = 2; in main()
89 ehdr->e_type = ET_EXEC; in main()
90 ehdr->e_version = 1; in main()
91 ehdr->e_ehsize = 1; in main()
131 ehdr->e_shstrndx = elf_ndxscn (scn); in main()
152 ehdr = elf32_getehdr (elf); in main()
154 phdr[0].p_offset = ehdr->e_phoff; in main()
155 phdr[0].p_offset = ehdr->e_phoff; in main()
156 phdr[0].p_vaddr = ehdr->e_phoff; in main()
157 phdr[0].p_paddr = ehdr->e_phoff; in main()
159 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
160 phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
180 printf (" %02x", ehdr->e_ident[i]); in main()
185 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry, in main()
186 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main()
187 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
188 ehdr->e_shnum, ehdr->e_shstrndx); in main()