diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-06-17 17:53:57 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-06-17 17:53:57 +0000 |
commit | 870227d3f80de5914839f3137f3b430f4d644408 (patch) | |
tree | c89f8c0a4fcefee49ee745eea684b109f77e245f /tools/gold | |
parent | bef5612dfd55fe4ea9c9b02b5c72c4438aecbb36 (diff) |
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
Diffstat (limited to 'tools/gold')
-rw-r--r-- | tools/gold/gold-plugin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index 105fef9a2d74..cd4e39cb81ce 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(); } |