]> granicus.if.org Git - llvm/commitdiff
Don't use the new x86 relax relocations on the gold plugin.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 17 Jun 2016 17:53:57 +0000 (17:53 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 17 Jun 2016 17:53:57 +0000 (17:53 +0000)
Should bring back the bots with old versions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273022 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gold/gold-plugin.cpp

index 105fef9a2d745ce25f0b2555a1a386e1b886d839..cd4e39cb81ce1ea47baaed5fd2e2481eb6f50f6f 100644 (file)
@@ -984,6 +984,10 @@ void CodeGen::initTargetMachine() {
   FeaturesString = Features.getString();
   Options = InitTargetOptionsFromCodeGenFlags();
 
+  // Disable the new X86 relax relocations since gold might not support them.
+  // FIXME: Check the gold version or add a new option to enable them.
+  Options.RelaxELFRelocations = false;
+
   TM = createTargetMachine();
 }