[llvm] r273022 - Don't use the new x86 relax relocations on the gold plugin.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 17 10:53:57 PDT 2016


Author: rafael
Date: Fri Jun 17 12:53:57 2016
New Revision: 273022

URL: http://llvm.org/viewvc/llvm-project?rev=273022&view=rev
Log:
Don't use the new x86 relax relocations on the gold plugin.

Should bring back the bots with old versions.

Modified:
    llvm/trunk/tools/gold/gold-plugin.cpp

Modified: llvm/trunk/tools/gold/gold-plugin.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/gold/gold-plugin.cpp?rev=273022&r1=273021&r2=273022&view=diff
==============================================================================
--- llvm/trunk/tools/gold/gold-plugin.cpp (original)
+++ llvm/trunk/tools/gold/gold-plugin.cpp Fri Jun 17 12:53:57 2016
@@ -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();
 }
 




More information about the llvm-commits mailing list