Home | History | Annotate | Download | only in tests

Lines Matching defs:ehdr

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