lto/96385 - avoid unused global UNDEFs in debug objects
authorRichard Biener <rguenther@suse.de>
Mon, 3 Aug 2020 13:05:37 +0000 (15:05 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 3 Aug 2020 13:09:20 +0000 (15:09 +0200)
commitb32c5d0b72fda2588b4e170e75a9c64e4bf266c7
treef44cf2f956326620ccc778762cd09c5310e3ff6a
parent5e97638b0adfb822d3b156c07da27d41091ce137
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.
libiberty/simple-object-elf.c