2017-01-02 Richard Biener <rguenther@suse.de>
commit7ba3b913ef8f27bee99e098c71f00085f4e421fe
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Jan 2018 08:45:05 +0000 (2 08:45 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Jan 2018 08:45:05 +0000 (2 08:45 +0000)
tree9dfc2ac39ab981c198a7edf3be4953b2a1813796
parent70ab3e40a57acacffdd7efe155841bb0ca6cc28a
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256069 138bc75d-0d04-0410-961f-82ee72b054a4
libiberty/ChangeLog
libiberty/simple-object-elf.c