[clang] [llvm] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 10:13:14 PST 2023


================
@@ -2645,10 +2653,14 @@ MCSection *TargetLoweringObjectFileXCOFF::getSectionForTOCEntry(
     const MCSymbol *Sym, const TargetMachine &TM) const {
   // Use TE storage-mapping class when large code model is enabled so that
   // the chance of needing -bbigtoc is decreased.
+  // The "_$TLSML" symbol for TLS local-dynamic mode requires XMC_TC.
----------------
stephenpeckham wrote:

You can use addis/load to load _$TLSML.  In this case, you can use XMC_TE. 

https://github.com/llvm/llvm-project/pull/66316


More information about the llvm-commits mailing list