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

Amy Kwan via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 21 13:04:52 PDT 2023


================
@@ -757,6 +772,16 @@ getTOCEntryTypeForMO(const MachineOperand &MO) {
     llvm_unreachable("Unexpected operand type to get TOC type.");
   }
 }
+
+// On AIX, TLS-local-dynamic requires that symbol for the module handle must
+// have the name "_$TLSML". This symbol is used as one TOC symbol reference
+// itself with ML relocation type, thus it has "[TC]" attached to its name.
----------------
amy-kwan wrote:

```suggestion
// itself with an ML relocation type, thus it has "[TC]" attached to its name.
```

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


More information about the llvm-commits mailing list