https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96385
--- Comment #17 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:b32c5d0b72fda2588b4e170e75a9c64e4bf266c7 commit r11-2506-gb32c5d0b72fda2588b4e170e75a9c64e4bf266c7 Author: Richard Biener <rguent...@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 <rguent...@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.