gold plugin: move target initialization to the top of the onload function.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 3 Jul 2014 23:28:03 +0000 (23:28 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 3 Jul 2014 23:28:03 +0000 (23:28 +0000)
commit59349ad8ad18d1b2e9ee6741d91d01dd74b63710
tree84654af95d7d2b4f776fb9c76a8c84a0d7b431ae
parent1e64b30a9b96deeb3e168d415570a8c92488505f
gold plugin: move target initialization to the top of the onload function.

On at least my machine, ar does not register an all symbols read hook (which
previously triggered target initialization), but it does register a claim
files hook, which depends on the targets being initialized.

Differential Revision: http://reviews.llvm.org/D4372

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