Lines Matching refs:pHeader
27 Minijail_Elf ## bit ## _Ehdr *pHeader = NULL; \
34 pHeader = (Minijail_Elf ## bit ## _Ehdr *)pHead; \
36 pHeader->e_phoff = le ## bit ## toh(pHeader->e_phoff); \
37 pHeader->e_phentsize = le16toh(pHeader->e_phentsize); \
38 pHeader->e_phnum = le16toh(pHeader->e_phnum); \
40 pHeader->e_phoff = be ## bit ## toh(pHeader->e_phoff); \
41 pHeader->e_phentsize = be16toh(pHeader->e_phentsize); \
42 pHeader->e_phnum = be16toh(pHeader->e_phnum); \
44 if (pHeader->e_phentsize != sizeof(Minijail_Elf ## bit ## _Phdr)) \
47 if (fseek(elf_file, pHeader->e_phoff, SEEK_SET) != 0) \
50 for (i = 0; i < pHeader->e_phnum; i++) { \
71 uint8_t pHeader[HEADERSIZE] = ""; in get_elf_linkage() local
75 if (fread(pHeader, 1, HEADERSIZE, elf_file) == HEADERSIZE) { in get_elf_linkage()
76 if (is_elf_magic(pHeader)) { in get_elf_linkage()
77 if ((pHeader[EI_DATA] == ELFDATA2LSB) && in get_elf_linkage()
78 (pHeader[EI_CLASS] == ELFCLASS64)) { in get_elf_linkage()
80 ret = parseElf64(elf_file, pHeader, 1); in get_elf_linkage()
81 } else if ((pHeader[EI_DATA] == ELFDATA2MSB) && in get_elf_linkage()
82 (pHeader[EI_CLASS] == ELFCLASS64)) { in get_elf_linkage()
84 ret = parseElf64(elf_file, pHeader, 0); in get_elf_linkage()
85 } else if ((pHeader[EI_DATA] == ELFDATA2LSB) && in get_elf_linkage()
86 (pHeader[EI_CLASS] == ELFCLASS32)) { in get_elf_linkage()
88 ret = parseElf32(elf_file, pHeader, 1); in get_elf_linkage()
89 } else if ((pHeader[EI_DATA] == ELFDATA2MSB) && in get_elf_linkage()
90 (pHeader[EI_CLASS] == ELFCLASS32)) { in get_elf_linkage()
92 ret = parseElf32(elf_file, pHeader, 0); in get_elf_linkage()