Lines Matching refs:image
37 unsigned char const *&image,
41 unsigned char const *image,
44 void dump_and_run_file(unsigned char const *image, size_t size,
59 unsigned char const *image = NULL;
62 if (!open_mmap_file(filename, fd, image, image_size)) {
67 dump_and_run_file(image, image_size, argc - 1, argv + 1);
70 close_mmap_file(fd, image, image_size);
182 void dump_and_run_file(unsigned char const *image, size_t size,
189 if (image[EI_DATA] != ELFDATA2LSB && image[EI_DATA] != ELFDATA2MSB) {
194 if (image[EI_CLASS] != ELFCLASS32 && image[EI_CLASS] != ELFCLASS64) {
199 bool isLittleEndian = (image[EI_DATA] == ELFDATA2LSB);
200 bool is32bit = (image[EI_CLASS] == ELFCLASS32);
203 ArchiveReaderLE AR(image, size);
206 ArchiveReaderBE AR(image, size);
213 unsigned char const *&image,
236 // Map the file image
237 image = static_cast<unsigned char const *>(
240 if (image == MAP_FAILED) {
250 unsigned char const *image,
252 if (image) {
253 munmap((void *)image, size);