Lines Matching refs:ehdr
40 Elf32_Ehdr *ehdr; in main() local
72 ehdr = elf32_newehdr (elf); in main()
73 if (ehdr == NULL) in main()
83 printf (" %02x", ehdr->e_ident[i]); in main()
88 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry, in main()
89 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main()
90 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
91 ehdr->e_shnum, ehdr->e_shstrndx); in main()
94 ehdr->e_ident[0] = 42; in main()
95 ehdr->e_ident[4] = 1; in main()
96 ehdr->e_ident[5] = 1; in main()
97 ehdr->e_ident[6] = 2; in main()
98 ehdr->e_type = ET_EXEC; in main()
99 ehdr->e_version = 1; in main()
100 ehdr->e_ehsize = 1; in main()
284 ehdr->e_shstrndx = elf_ndxscn (scn); in main()
309 ehdr = elf32_getehdr (elf); in main()
311 phdr[0].p_offset = ehdr->e_phoff; in main()
312 phdr[0].p_offset = ehdr->e_phoff; in main()
313 phdr[0].p_vaddr = ehdr->e_phoff; in main()
314 phdr[0].p_paddr = ehdr->e_phoff; in main()
316 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
317 phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
337 printf (" %02x", ehdr->e_ident[i]); in main()
342 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry, in main()
343 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main()
344 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
345 ehdr->e_shnum, ehdr->e_shstrndx); in main()