Home | History | Annotate | Download | only in tests

Lines Matching defs:ehdr

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