https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85238

--- Comment #23 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> Huh, no. Never seen that.

Well, well, well... ;-)

Index: lto-wrapper.c
===================================================================
--- lto-wrapper.c       (revision 259205)
+++ lto-wrapper.c       (working copy)
@@ -983,7 +983,7 @@ debug_objcopy (const char *infile)
       infile = fname;
       inoff = (off_t) loffset;
     }
-  int infd = open (infile, O_RDONLY);
+  int infd = open (infile, O_RDONLY | O_BINARY);
   if (infd == -1)
     return NULL;
   simple_object_read *inobj = simple_object_start_read (infd, inoff,

Reply via email to