diff options
author | Brad King <brad.king@kitware.com> | 2021-06-24 14:55:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-24 14:57:51 (GMT) |
commit | e21188df8bd08a5f306afc09bcb829d148b982d5 (patch) | |
tree | 94963eb76648bfefb471ddfabf2b57383a0d2cf6 /Source/cmELF.cxx | |
parent | 70cdb36d25f5b350b1e6a79b02ebcdd025d771f9 (diff) | |
download | CMake-e21188df8bd08a5f306afc09bcb829d148b982d5.zip CMake-e21188df8bd08a5f306afc09bcb829d148b982d5.tar.gz CMake-e21188df8bd08a5f306afc09bcb829d148b982d5.tar.bz2 |
cmELF: Open file explicitly in binary mode
ELF is a binary format.
Diffstat (limited to 'Source/cmELF.cxx')
-rw-r--r-- | Source/cmELF.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmELF.cxx b/Source/cmELF.cxx index deffdb6..01dc0b1 100644 --- a/Source/cmELF.cxx +++ b/Source/cmELF.cxx @@ -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) { |