PR target/65559
* lto-wrapper.c (run_gcc): Open filename
with in binary-mode.
From-SVN: r222759
+2015-05-04 Kai Tietz <ktietz@redhat.com>
+
+ PR target/65559
+ * lto-wrapper.c (run_gcc): Open filename
+ with in binary-mode.
+
2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
* doc/extend.texi (Variable Attributes, Type Attributes): Move
filename[p - argv[i]] = '\0';
file_offset = (off_t) loffset;
}
- fd = open (argv[i], O_RDONLY);
+ fd = open (filename, O_RDONLY | O_BINARY);
if (fd == -1)
{
lto_argv[lto_argc++] = argv[i];