aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/gold
diff options
context:
space:
mode:
authorserge-sans-paille <sguelton@redhat.com>2020-03-18 11:38:44 +0100
committerserge-sans-paille <sguelton@redhat.com>2020-03-18 11:44:17 +0100
commit8d019cda851a1031fbce3c50be0975438147f11d (patch)
treee8377dca021a2acb6f0784f1989668030dfe9fdc /llvm/tools/gold
parentcda2b0769f5b7574a1de440bdeacfa5b33f08869 (diff)
downloadllvm-8d019cda851a1031fbce3c50be0975438147f11d.zip
llvm-8d019cda851a1031fbce3c50be0975438147f11d.tar.gz
llvm-8d019cda851a1031fbce3c50be0975438147f11d.tar.bz2
Fix ac1d23ed7de01fb3 interaction with gold plugin
Correctly set RelocationModel, thanks @modocache for spotting this. Related to differential revision: https://reviews.llvm.org/D75579
Diffstat (limited to 'llvm/tools/gold')
-rw-r--r--llvm/tools/gold/gold-plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index 4a491ea..2db5716 100644
--- a/llvm/tools/gold/gold-plugin.cpp
+++ b/llvm/tools/gold/gold-plugin.cpp
@@ -869,7 +869,7 @@ static std::unique_ptr<LTO> createLTO(IndexWriteCallback OnIndexWrite,
Conf.Options.DataSections = SplitSections;
Conf.MAttrs = codegen::getMAttrs();
- Conf.RelocModel = codegen::getExplicitRelocModel();
+ Conf.RelocModel = RelocationModel;
Conf.CodeModel = codegen::getExplicitCodeModel();
Conf.CGOptLevel = getCGOptLevel();
Conf.DisableVerify = options::DisableVerify;