diff options
author | Alfredo Dal'Ava Junior <alfredo@FreeBSD.org> | 2021-08-27 14:47:11 +0000 |
---|---|---|
committer | Alfredo Dal'Ava Junior <alfredo@FreeBSD.org> | 2021-08-27 14:47:11 +0000 |
commit | 9a4d48a645a7a3ebee05fae25afd154a132b638a (patch) | |
tree | 54a3272ed3c064892bc5b0e12c56e133afd1c51e /contrib/llvm-project/llvm/lib/CodeGen | |
parent | c577bdfce6b4451ab897bfe5013543e78a7f9b62 (diff) | |
download | src-9a4d48a645a7a3ebee05fae25afd154a132b638a.tar.gz src-9a4d48a645a7a3ebee05fae25afd154a132b638a.zip |
Diffstat (limited to 'contrib/llvm-project/llvm/lib/CodeGen')
-rw-r--r-- | contrib/llvm-project/llvm/lib/CodeGen/TargetLoweringBase.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/llvm-project/llvm/lib/CodeGen/TargetLoweringBase.cpp b/contrib/llvm-project/llvm/lib/CodeGen/TargetLoweringBase.cpp index 28c8bd0a7ded..74fea674f962 100644 --- a/contrib/llvm-project/llvm/lib/CodeGen/TargetLoweringBase.cpp +++ b/contrib/llvm-project/llvm/lib/CodeGen/TargetLoweringBase.cpp @@ -1961,7 +1961,8 @@ void TargetLoweringBase::insertSSPDeclarations(Module &M) const { GlobalVariable::ExternalLinkage, nullptr, "__stack_chk_guard"); if (TM.getRelocationModel() == Reloc::Static && - !TM.getTargetTriple().isWindowsGNUEnvironment()) + !TM.getTargetTriple().isWindowsGNUEnvironment() && + !(TM.getTargetTriple().isPPC64() && TM.getTargetTriple().isOSFreeBSD())) GV->setDSOLocal(true); } } |