Commit bfe6f076 by Richard Biener Committed by Richard Biener

re PR lto/82757 (r251560 causes: plugin needed to handle lto object)

2017-10-30  Richard Biener  <rguenther@suse.de>

	PR lto/82757
	* simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
	Strip two leading _s from the __gnu_lto_* symbols.

From-SVN: r254219
parent 51a9f20c
2017-10-30 Richard Biener <rguenther@suse.de>
PR lto/82757
* simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
Strip two leading _s from the __gnu_lto_* symbols.
2017-10-24 Alan Modra <amodra@gmail.com> 2017-10-24 Alan Modra <amodra@gmail.com>
PR lto/82687 PR lto/82687
......
...@@ -1384,7 +1384,12 @@ simple_object_elf_copy_lto_debug_sections (simple_object_read *sobj, ...@@ -1384,7 +1384,12 @@ simple_object_elf_copy_lto_debug_sections (simple_object_read *sobj,
&& p[1] == '_' && p[1] == '_'
&& strncmp (p + (p[2] == '_'), && strncmp (p + (p[2] == '_'),
"__gnu_lto_", 10) == 0) "__gnu_lto_", 10) == 0)
other = STV_HIDDEN; {
other = STV_HIDDEN;
ELF_SET_FIELD (type_functions, ei_class, Sym,
ent, st_name, Elf_Word,
st_name + 2);
}
} }
} }
*st_other = other; *st_other = other;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment