Lines Matching defs:ehdr
39 Elf32_Ehdr *ehdr;
60 ehdr = elf32_newehdr (elf);
61 if (ehdr == NULL)
71 printf (" %02x", ehdr->e_ident[i]);
76 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry,
77 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize,
78 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize,
79 ehdr->e_shnum, ehdr->e_shstrndx);
82 ehdr->e_ident[0] = 42;
83 ehdr->e_ident[4] = 1;
84 ehdr->e_ident[5] = 1;
85 ehdr->e_ident[6] = 2;
86 ehdr->e_type = ET_EXEC;
87 ehdr->e_version = 1;
88 ehdr->e_ehsize = 1;
109 ehdr = elf32_getehdr (elf);
111 phdr[0].p_offset = ehdr->e_phoff;
112 phdr[0].p_offset = ehdr->e_phoff;
113 phdr[0].p_vaddr = ehdr->e_phoff;
114 phdr[0].p_paddr = ehdr->e_phoff;
116 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT);
117 phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT);
131 printf (" %02x", ehdr->e_ident[i]);
136 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry,
137 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize,
138 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize,
139 ehdr->e_shnum, ehdr->e_shstrndx);