libLTO has a bug in that it will keep every symbol if none is needed. We used
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 26 Oct 2012 00:29:57 +0000 (00:29 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 26 Oct 2012 00:29:57 +0000 (00:29 +0000)
commitfffb72470d126e7000a03a88ed30326e3521d84f
tree2bd8f690ccd18ca750938a52184aef65945138d8
parentcadc38a4b1b0bd43608bb7f7b7660304acb29965
libLTO has a bug in that it will keep every symbol if none is needed. We used
to hack around this in the gold plugin by deleting a module if no symbol was
needed. Unfortunately, the hack is wrong in the case of o module having no
visible symbols but still having side effects via static constructors.

The bug will have to be fixed in libLTO itself.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166745 91177308-0d34-0410-b5e6-96231b3b80d8
tools/gold/gold-plugin.cpp