Lines Matching refs:elf_file
17 ElfType parseElf ## bit(FILE *elf_file, uint8_t *pHead, int little_endian) \
24 if (!elf_file || !pHead) \
40 if (fseek(elf_file, pHeader->e_phoff, SEEK_SET) != 0) \
44 if (fread(&pheader, sizeof(pheader), 1, elf_file) == 1) { \
63 FILE *elf_file = NULL; in get_elf_linkage() local
66 elf_file = fopen(path, "r"); in get_elf_linkage()
67 if (elf_file) { in get_elf_linkage()
68 if (fread(pHeader, 1, HEADERSIZE, elf_file) == HEADERSIZE) { in get_elf_linkage()
73 ret = parseElf64(elf_file, pHeader, 1); in get_elf_linkage()
77 ret = parseElf64(elf_file, pHeader, 0); in get_elf_linkage()
81 ret = parseElf32(elf_file, pHeader, 1); in get_elf_linkage()
85 ret = parseElf32(elf_file, pHeader, 0); in get_elf_linkage()
108 fclose(elf_file); in get_elf_linkage()