diff options
author | Chen Zheng <czhengsz@cn.ibm.com> | 2022-07-21 06:22:50 -0400 |
---|---|---|
committer | Chen Zheng <czhengsz@cn.ibm.com> | 2022-08-12 00:54:48 -0400 |
commit | 8d19cfb72e13aaac3f5b5f1af884e7799aa9e05f (patch) | |
tree | 7f8310502ef71b8689ba1a7fb546325cead89430 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 3934a31cfa024edfaa406c3706dc943e59f9049c (diff) | |
download | llvm-8d19cfb72e13aaac3f5b5f1af884e7799aa9e05f.zip llvm-8d19cfb72e13aaac3f5b5f1af884e7799aa9e05f.tar.gz llvm-8d19cfb72e13aaac3f5b5f1af884e7799aa9e05f.tar.bz2 |
[PowerPC] omit location attribute for TLS variable on AIX
TLS debug on AIX is not ready for now.
The location generated in no-integrated-as mode is wrong and
in integrated-as mode causes AIX linker error.
Reviewed By: Esme
Differential Revision: https://reviews.llvm.org/D130245
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index b114f42..5859937 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -2469,6 +2469,13 @@ void TargetLoweringObjectFileXCOFF::Initialize(MCContext &Ctx, PersonalityEncoding = 0; LSDAEncoding = 0; CallSiteEncoding = dwarf::DW_EH_PE_udata4; + + // AIX debug for thread local location is not ready. And for integrated as + // mode, the relocatable address for the thread local variable will cause + // linker error. So disable the location attribute generation for thread local + // variables for now. + // FIXME: when TLS debug on AIX is ready, remove this setting. + SupportDebugThreadLocalLocation = false; } MCSection *TargetLoweringObjectFileXCOFF::getStaticCtorSection( |