mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
cmELF: Open file explicitly in binary mode
ELF is a binary format.
This commit is contained in:
+1
-1
@@ -683,7 +683,7 @@ const long cmELF::TagMipsRldMapRel = 0;
|
||||
cmELF::cmELF(const char* fname)
|
||||
{
|
||||
// Try to open the file.
|
||||
auto fin = cm::make_unique<cmsys::ifstream>(fname);
|
||||
auto fin = cm::make_unique<cmsys::ifstream>(fname, std::ios::binary);
|
||||
|
||||
// Quit now if the file could not be opened.
|
||||
if (!fin || !*fin) {
|
||||
|
||||
Reference in New Issue
Block a user