Lines Matching refs:ehdr
33 Elf32_Ehdr *ehdr; in main() local
54 ehdr = elf32_newehdr (elf); in main()
55 if (ehdr == NULL) in main()
65 printf (" %02x", ehdr->e_ident[i]); in main()
70 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry, in main()
71 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main()
72 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
73 ehdr->e_shnum, ehdr->e_shstrndx); in main()
76 ehdr->e_ident[0] = 42; in main()
77 ehdr->e_ident[4] = 1; in main()
78 ehdr->e_ident[5] = 1; in main()
79 ehdr->e_ident[6] = 2; in main()
80 ehdr->e_type = ET_EXEC; in main()
81 ehdr->e_version = 1; in main()
82 ehdr->e_ehsize = 1; in main()
103 ehdr = elf32_getehdr (elf); in main()
105 phdr[0].p_offset = ehdr->e_phoff; in main()
106 phdr[0].p_offset = ehdr->e_phoff; in main()
107 phdr[0].p_vaddr = ehdr->e_phoff; in main()
108 phdr[0].p_paddr = ehdr->e_phoff; in main()
110 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
111 phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
125 printf (" %02x", ehdr->e_ident[i]); in main()
130 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry, in main()
131 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize, in main()
132 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
133 ehdr->e_shnum, ehdr->e_shstrndx); in main()