https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83452
--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Tue Jan 2 08:45:05 2018 New Revision: 256069 URL: https://gcc.gnu.org/viewcvs?rev=256069&root=gcc&view=rev Log: 2017-01-02 Richard Biener <rguent...@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. Modified: trunk/libiberty/ChangeLog trunk/libiberty/simple-object-elf.c