[Bug target/85238] [8 Regression] lto-wrapper: fatal error: simple_object_copy_lto_debug_sections not implemented: Invalid argument on Cygwin
ebotcazou at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 12 09:14:00 GMT 2018
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,
More information about the Gcc-bugs
mailing list