https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66125
Bug ID: 66125 Summary: lto1: code model kernel does not support PIC mode Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: dimhen at gmail dot com Target Milestone: --- r222758 PASS r222759 FAIL Alas, I had no compact testcase. But 'argv[i] --> filename' change is not clear for me. At least, it"s not mentioned in ChangeLog :) $ svn diff -c222759 gcc/lto-wrapper.c Index: gcc/lto-wrapper.c =================================================================== --- gcc/lto-wrapper.c (revision 222758) +++ gcc/lto-wrapper.c (revision 222759) @@ -934,7 +934,7 @@ 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];