From b74d120627a22632d7b236d6a2e9005fb21477b2 Mon Sep 17 00:00:00 2001 From: Tao Sang Date: Fri, 16 Oct 2020 17:12:26 -0400 Subject: [PATCH] Fix ocltst test issue Fix dumpImage() issue exposed on Win10. It's called by internal compiler on Navi14 Change-Id: I693ffd45b6b03657822afdc872781901bc69b65d --- rocclr/elf/elf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocclr/elf/elf.cpp b/rocclr/elf/elf.cpp index 1795ab5b0b..0e08feed03 100644 --- a/rocclr/elf/elf.cpp +++ b/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;