Skip to content
Snippets Groups Projects
Commit e21188df authored by Brad King's avatar Brad King
Browse files

cmELF: Open file explicitly in binary mode

ELF is a binary format.
parent 70cdb36d
Branches
Tags
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment