• Home
  • Raw
  • Download

Lines Matching refs:ehdr

68   GElf_Ehdr ehdr;  in test()  local
69 check_elf ("gelf_getehdr", gelf_getehdr (elf, &ehdr) != NULL); in test()
70 check ("e_shnum == 0", ehdr.e_shnum == 0); in test()
71 check ("e_phnum == 0", ehdr.e_phnum == 0); in test()
72 check ("e_shoff == 0", ehdr.e_shoff == 0); in test()
73 check ("e_phoff == 0", ehdr.e_phoff == 0); in test()
84 ehdr.e_ident[EI_DATA] = ELFDATANONE; /* Ask for native encoding. */ in test()
85 ehdr.e_type = ET_EXEC; in test()
86 ehdr.e_machine = EM_386; in test()
87 ehdr.e_version = EV_NONE; /* Ask for current version. */ in test()
88 check_elf ("gelf_update_ehdr", gelf_update_ehdr (elf, &ehdr) != 0); in test()
92 check_elf ("gelf_getehdr", gelf_getehdr (elf, &ehdr) != NULL); in test()
93 check ("EI_DATA", ehdr.e_ident[EI_DATA] != ELFDATANONE); in test()
94 check ("e_version", ehdr.e_version == EV_CURRENT); in test()
97 check ("e_shnum == 0", ehdr.e_shnum == 0); in test()
98 check ("e_phnum == 0", ehdr.e_phnum == 0); in test()
99 check ("e_shoff == 0", ehdr.e_shoff == 0); in test()
100 check ("e_phoff == 0", ehdr.e_phoff == 0); in test()
116 check_elf ("gelf_getehdr", gelf_getehdr (elf, &ehdr) != NULL); in test()
118 ehdr.e_phoff = ehdr.e_ehsize; in test()
120 ehdr.e_shoff = ehdr.e_phoff + ehdr.e_phnum * ehdr.e_phentsize; in test()
121 check_elf ("gelf_update_ehdr", gelf_update_ehdr (elf, &ehdr) != 0); in test()
132 check_elf ("gelf_getehdr", gelf_getehdr (elf, &ehdr) != NULL); in test()
134 check ("EI_DATA", ehdr.e_ident[EI_DATA] != ELFDATANONE); in test()
135 check ("e_version", ehdr.e_version == EV_CURRENT); in test()
137 check ("e_shnum == 2", ehdr.e_shnum == 2); in test()
138 check ("e_phnum == 1", ehdr.e_phnum == 1); in test()
139 check ("e_shoff != 0", ehdr.e_shoff != 0); in test()
140 check ("e_phoff != 0", ehdr.e_phoff != 0); in test()
144 check ("e_shentsize", ehdr.e_shentsize == shentsize); in test()
147 check ("e_phentsize", ehdr.e_phentsize == phentsize); in test()