aboutsummaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2017-10-30 12:48:53 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2017-10-30 12:48:53 +0000
commitbfe6f07666cefb587faaeb988747fffdd5e96524 (patch)
tree7ab0fd6ebaef0b1c0e09b38d3fbfd99eff6b42bd /libiberty
parent51a9f20ca91d656734198405f8955e33adb54189 (diff)
downloadgcc-bfe6f07666cefb587faaeb988747fffdd5e96524.zip
gcc-bfe6f07666cefb587faaeb988747fffdd5e96524.tar.gz
gcc-bfe6f07666cefb587faaeb988747fffdd5e96524.tar.bz2
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
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog6
-rw-r--r--libiberty/simple-object-elf.c7
2 files changed, 12 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index eb3cbc1..c8e1e13 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,9 @@
+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>
PR lto/82687
diff --git a/libiberty/simple-object-elf.c b/libiberty/simple-object-elf.c
index 14f7105..27431db 100644
--- a/libiberty/simple-object-elf.c
+++ b/libiberty/simple-object-elf.c
@@ -1384,7 +1384,12 @@ simple_object_elf_copy_lto_debug_sections (simple_object_read *sobj,
&& p[1] == '_'
&& strncmp (p + (p[2] == '_'),
"__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;