Fix ac1d23ed7d interaction with gold plugin

Correctly set RelocationModel, thanks @modocache for spotting this.

Related to differential revision: https://reviews.llvm.org/D75579
This commit is contained in:
serge-sans-paille 2020-03-18 11:38:44 +01:00
parent cda2b0769f
commit 8d019cda85
1 changed files with 1 additions and 1 deletions

View File

@ -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;