gold plugin: Handle gold selecting a linkonce GV when a weak is present.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 7 Oct 2014 04:06:13 +0000 (04:06 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 7 Oct 2014 04:06:13 +0000 (04:06 +0000)
commit61c4e41480ef81f4449acc8604efdcd1c26607b2
tree6f624cce7740773a7e75079adeb833241a232e08
parent301d3d04f026c7a35ebc6dc0e568dd1d58a6ed6a
gold plugin: Handle gold selecting a linkonce GV when a weak is present.

The plugin API doesn't have the notion of linkonce, only weak. It is up to the
plugin to figure out if a symbol used only for the symbol table can be dropped.
In particular, it has to avoid dropping a linkonce_odr selected by gold if there
is also a weak_odr.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219188 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/gold/Inputs/linkonce-weak.ll [new file with mode: 0644]
test/tools/gold/linkonce-weak.ll [new file with mode: 0644]
tools/gold/gold-plugin.cpp