https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65559
--- Comment #34 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Rainer Emrich from comment #30) > I'm testing the following instead: > > Index: gcc/lto-wrapper.c > =================================================================== > --- gcc/lto-wrapper.c (Revision 222611) > +++ gcc/lto-wrapper.c (Arbeitskopie) > @@ -934,12 +934,9 @@ run_gcc (unsigned argc, char *argv[]) > filename[p - argv[i]] = '\0'; > file_offset = (off_t) loffset; > } > - fd = open (argv[i], O_RDONLY); > + fd = open (argv[i], O_RDONLY|O_BINARY); > if (fd == -1) > - { > - lto_argv[lto_argc++] = argv[i]; > - continue; > - } > + continue; Note that passing filename instead of argv[i] is most certainly also good (though I was trying to figure out if that's a separate issue or not). > > if (find_and_merge_options (fd, file_offset, LTO_SECTION_NAME_PREFIX, > &fdecoded_options, &fdecoded_options_count,