diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2023-10-04 18:24:05 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2023-12-08 17:35:33 +0000 |
commit | 3bd749dbd90cc3b95719b65393df5ca8a0fe919d (patch) | |
tree | 77323cabf514676e5ecf9a5c5859c2208a08c67c /contrib/llvm-project/llvm/lib | |
parent | 4542f901cb0c5dd66ab5b541f2fbc659fd46f893 (diff) | |
parent | 7d1b50167725e83cd4b07401b6916b7f0b6919f1 (diff) |
Diffstat (limited to 'contrib/llvm-project/llvm/lib')
-rw-r--r-- | contrib/llvm-project/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/llvm-project/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/contrib/llvm-project/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index 55fb522554fa..4ffffd85ee53 100644 --- a/contrib/llvm-project/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/contrib/llvm-project/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -855,7 +855,7 @@ static MCSectionELF *selectELFSectionForGlobal( Group = C->getName(); IsComdat = C->getSelectionKind() == Comdat::Any; } - if (isa<GlobalVariable>(GO)) { + if (isa<GlobalVariable>(GO) && !cast<GlobalVariable>(GO)->isThreadLocal()) { if (TM.isLargeData()) { assert(TM.getTargetTriple().getArch() == Triple::x86_64); Flags |= ELF::SHF_X86_64_LARGE; |