diff options
author | serge-sans-paille <sguelton@redhat.com> | 2020-03-18 11:38:44 +0100 |
---|---|---|
committer | serge-sans-paille <sguelton@redhat.com> | 2020-03-18 11:44:17 +0100 |
commit | 8d019cda851a1031fbce3c50be0975438147f11d (patch) | |
tree | e8377dca021a2acb6f0784f1989668030dfe9fdc /llvm/tools/gold | |
parent | cda2b0769f5b7574a1de440bdeacfa5b33f08869 (diff) | |
download | llvm-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.cpp | 2 |
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; |