diff --git a/projects/clr/rocclr/elf/elf.cpp b/projects/clr/rocclr/elf/elf.cpp index 1795ab5b0b..0e08feed03 100644 --- a/projects/clr/rocclr/elf/elf.cpp +++ b/projects/clr/rocclr/elf/elf.cpp @@ -930,7 +930,7 @@ bool Elf::dumpImage(char** buff, size_t* len) if (buff != nullptr && len != nullptr) { std::ifstream is; - is.open(dumpFile); // open input file + is.open(dumpFile, std::ifstream::in | std::ifstream::binary); // open input file if (!is.good()) { LogElfError("failed in is.open(%s)", dumpFile.c_str()); return false;