From 8d19cfb72e13aaac3f5b5f1af884e7799aa9e05f Mon Sep 17 00:00:00 2001 From: Chen Zheng Date: Thu, 21 Jul 2022 06:22:50 -0400 Subject: [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 --- llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp') diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index b114f42fbb28..585993763281 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( -- cgit v1.2.3