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

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 25 22:59:08 PDT 2023


================
@@ -1360,6 +1372,9 @@ void XCOFFObjectWriter::assignAddressesAndIndices(const MCAsmLayout &Layout) {
 
   // Calculate indices for undefined symbols.
   for (auto &Csect : UndefinedCsects) {
+    // AIX does not need to emit for the _$TLSML symbol.
+    if (Csect.getSymbolTableName().equals(StringRef("_$TLSML")))
----------------
MaskRay wrote:

`== "..."`

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


More information about the cfe-commits mailing list