summaryrefslogtreecommitdiff
path: root/gcc/lto-wrapper.c
diff options
context:
space:
mode:
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-23 14:07:41 +0000
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-23 14:07:41 +0000
commit38fe0c89ed01d0946d3bbf4d06cf7072b4b8b661 (patch)
tree8fa6c7efa7b5b524d1a8f9f049a6ea53a8a17a1a /gcc/lto-wrapper.c
parent89ba950cf6c1650a8a760e9e2c909ed603068716 (diff)
downloadgcc-38fe0c89ed01d0946d3bbf4d06cf7072b4b8b661.tar.gz
PR lto/51916
* lto-wrapper.c (run_gcc): Pass the LTO section name to simple_object_start_read. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183433 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-wrapper.c')
-rw-r--r--gcc/lto-wrapper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c
index 6d262e8040b..1c9aa833dbc 100644
--- a/gcc/lto-wrapper.c
+++ b/gcc/lto-wrapper.c
@@ -479,7 +479,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, "__GNU_LTO",
+ &errmsg, &err);
if (!sobj)
{
close (fd);