mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 10:50:16 -06:00
cmELF: Open file explicitly in binary mode
ELF is a binary format.
This commit is contained in:
@@ -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