Lines Matching defs:ehdr
1211 Elf64_Ehdr ehdr;
1217 rc = elfcorehdr_read((char *)&ehdr, sizeof(Elf64_Ehdr), &addr);
1222 if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0 ||
1223 (ehdr.e_type != ET_CORE) ||
1224 !vmcore_elf64_check_arch(&ehdr) ||
1225 ehdr.e_ident[EI_CLASS] != ELFCLASS64 ||
1226 ehdr.e_ident[EI_VERSION] != EV_CURRENT ||
1227 ehdr.e_version != EV_CURRENT ||
1228 ehdr.e_ehsize != sizeof(Elf64_Ehdr) ||
1229 ehdr.e_phentsize != sizeof(Elf64_Phdr) ||
1230 ehdr.e_phnum == 0) {
1237 ehdr.e_phnum * sizeof(Elf64_Phdr);
1267 Elf32_Ehdr ehdr;
1273 rc = elfcorehdr_read((char *)&ehdr, sizeof(Elf32_Ehdr), &addr);
1278 if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0 ||
1279 (ehdr.e_type != ET_CORE) ||
1280 !vmcore_elf32_check_arch(&ehdr) ||
1281 ehdr.e_ident[EI_CLASS] != ELFCLASS32||
1282 ehdr.e_ident[EI_VERSION] != EV_CURRENT ||
1283 ehdr.e_version != EV_CURRENT ||
1284 ehdr.e_ehsize != sizeof(Elf32_Ehdr) ||
1285 ehdr.e_phentsize != sizeof(Elf32_Phdr) ||
1286 ehdr.e_phnum == 0) {
1292 elfcorebuf_sz_orig = sizeof(Elf32_Ehdr) + ehdr.e_phnum * sizeof(Elf32_Phdr);
1398 Elf64_Ehdr *ehdr = (Elf64_Ehdr *)elfptr;
1402 for (i = 0; i < ehdr->e_phnum; i++, phdr++) {
1418 Elf32_Ehdr *ehdr = (Elf32_Ehdr *)elfptr;
1422 for (i = 0; i < ehdr->e_phnum; i++, phdr++) {