[Bug lto/96385] [8/9/10 Regression] GCC generates separate debug info with undefined symbols without relocations
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Sep 11 12:12:01 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96385
--- Comment #19 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:63a2bdbfb42628800a6999e98804928855592ce7
commit r10-8746-g63a2bdbfb42628800a6999e98804928855592ce7
Author: Richard Biener <rguenther@suse.de>
Date: Mon Aug 3 15:05:37 2020 +0200
lto/96385 - avoid unused global UNDEFs in debug objects
Unused global UNDEFs can have side-effects in some circumstances so
the following patch avoids them by treating them the same as other
to be discarded DEFs - make them local.
2020-08-03 Richard Biener <rguenther@suse.de>
PR lto/96385
libiberty/
* simple-object-elf.c
(simple_object_elf_copy_lto_debug_sections): Localize global
UNDEFs and reuse the prevailing name.
(cherry picked from commit b32c5d0b72fda2588b4e170e75a9c64e4bf266c7)
More information about the Gcc-bugs
mailing list