re PR lto/83452 (FAIL: gfortran.dg/save_6.f90 -O0 (test for excess errors))
authorRichard Biener <rguenther@suse.de>
Tue, 2 Jan 2018 08:45:05 +0000 (08:45 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 2 Jan 2018 08:45:05 +0000 (08:45 +0000)
commitc1177db4fa8c12395a52bb11bb50df86cd371727
tree9dfc2ac39ab981c198a7edf3be4953b2a1813796
parentd42e3a016b75873a06a2506f1eee2c4dd8ee1025
re PR lto/83452 (FAIL: gfortran.dg/save_6.f90   -O0  (test for excess errors))

2017-01-02  Richard Biener  <rguenther@suse.de>

PR lto/83452
* simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
Do not use UNDEF locals for removed symbols but instead just
define them in the first prevailing section and with no name.
Use the same gnu_lto_v1 name for all removed globals we promote to
WEAK UNDEFs so hpux can use a stub to provide this symbol.  Clear
sh_info and sh_link in removed sections.

From-SVN: r256069
libiberty/ChangeLog
libiberty/simple-object-elf.c