===================================================================
@@ -54,6 +54,11 @@ along with GCC; see the file COPYING3. If not see
/* End of lto-streamer.h copy. */
+/* Segment name for LTO sections. This is only used for Mach-O.
+ FIXME: This needs to be kept in sync with darwin.c. */
+
+#define LTO_SEGMENT_NAME "__GNU_LTO"
+
int debug; /* true if -save-temps. */
int verbose; /* true if -v. */
@@ -479,7 +484,8 @@ run_gcc (unsigned argc, char *argv[])
fd = open (argv[i], O_RDONLY);
if (fd == -1)
continue;
- sobj = simple_object_start_read (fd, file_offset, NULL, &errmsg, &err);
+ sobj = simple_object_start_read (fd, file_offset, LTO_SEGMENT_NAME,
+ &errmsg, &err);
if (!sobj)
{
close (fd);