From: Rafael Espindola Date: Fri, 17 Jun 2016 17:53:57 +0000 (+0000) Subject: Don't use the new x86 relax relocations on the gold plugin. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=870227d3f80de5914839f3137f3b430f4d644408;p=llvm Don't use the new x86 relax relocations on the gold plugin. 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 --- diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index 105fef9a2d7..cd4e39cb81c 100644 --- a/tools/gold/gold-plugin.cpp +++ b/tools/gold/gold-plugin.cpp @@ -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(); }