Home | History | Annotate | Download | only in tests

Lines Matching refs:ehdr

45   Elf32_Ehdr *ehdr;
66 ehdr = elf32_newehdr (elf);
67 if (ehdr == NULL)
77 printf (" %02x", ehdr->e_ident[i]);
82 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry,
83 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize,
84 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize,
85 ehdr->e_shnum, ehdr->e_shstrndx);
88 ehdr->e_ident[0] = 42;
89 ehdr->e_ident[4] = 1;
90 ehdr->e_ident[5] = 1;
91 ehdr->e_ident[6] = 2;
92 ehdr->e_type = ET_EXEC;
93 ehdr->e_version = 1;
94 ehdr->e_ehsize = 1;
115 ehdr = elf32_getehdr (elf);
117 phdr[0].p_offset = ehdr->e_phoff;
118 phdr[0].p_offset = ehdr->e_phoff;
119 phdr[0].p_vaddr = ehdr->e_phoff;
120 phdr[0].p_paddr = ehdr->e_phoff;
122 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT);
123 phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT);
137 printf (" %02x", ehdr->e_ident[i]);
142 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry,
143 ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize,
144 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize,
145 ehdr->e_shnum, ehdr->e_shstrndx);