Lines Matching refs:ehdr
40 Elf32_Ehdr *ehdr; in main() local
68 ehdr = elf32_newehdr (elf); in main()
69 if (ehdr == NULL) in main()
79 printf (" %02x", ehdr->e_ident[i]); in main()
84 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry, in main()
85 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main()
86 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
87 ehdr->e_shnum, ehdr->e_shstrndx); in main()
90 ehdr->e_ident[0] = 42; in main()
91 ehdr->e_ident[4] = 1; in main()
92 ehdr->e_ident[5] = 1; in main()
93 ehdr->e_ident[6] = 2; in main()
94 ehdr->e_type = ET_EXEC; in main()
95 ehdr->e_version = 1; in main()
96 ehdr->e_ehsize = 1; in main()
136 ehdr->e_shstrndx = elf_ndxscn (scn); in main()
157 ehdr = elf32_getehdr (elf); in main()
159 phdr[0].p_offset = ehdr->e_phoff; in main()
160 phdr[0].p_offset = ehdr->e_phoff; in main()
161 phdr[0].p_vaddr = ehdr->e_phoff; in main()
162 phdr[0].p_paddr = ehdr->e_phoff; in main()
164 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
165 phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
185 printf (" %02x", ehdr->e_ident[i]); in main()
190 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry, in main()
191 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main()
192 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
193 ehdr->e_shnum, ehdr->e_shstrndx); in main()