Lines Matching refs:image
35 unsigned char const *&image,
39 unsigned char const *image,
42 void dump_and_run_file(unsigned char const *image, size_t size,
57 unsigned char const *image = NULL;
60 if (!open_mmap_file(filename, fd, image, image_size)) {
65 dump_and_run_file(image, image_size, argc - 1, argv + 1);
68 close_mmap_file(fd, image, image_size);
180 void dump_and_run_file(unsigned char const *image, size_t size,
187 if (image[EI_DATA] != ELFDATA2LSB && image[EI_DATA] != ELFDATA2MSB) {
192 if (image[EI_CLASS] != ELFCLASS32 && image[EI_CLASS] != ELFCLASS64) {
197 bool isLittleEndian = (image[EI_DATA] == ELFDATA2LSB);
198 bool is32bit = (image[EI_CLASS] == ELFCLASS32);
201 ArchiveReaderLE AR(image, size);
204 ArchiveReaderBE AR(image, size);
211 unsigned char const *&image,
234 // Map the file image
235 image = static_cast<unsigned char const *>(
238 if (image == MAP_FAILED) {
248 unsigned char const *image,
250 if (image) {
251 munmap((void *)image, size);