[clang] [llvm] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)
Felix via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 10 21:41:56 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.
----------------
orcguru wrote:
When I change from XMC_TC to XMC_TE in the large code model like following,
```
L..C0:
.tc _Renamed..5f24__TLSML[TE],_Renamed..5f24__TLSML[TE]@ml
.rename _Renamed..5f24__TLSML[TE],"_$TLSML"
```
The assembler complains like following:
```
Assembler:
tls_ld_te.s: line 62: 1252-215 The ML relocation type is only valid for a reference
to a TOC symbol from the symbol itself.
```
Change back to "TC" did not see the message.
https://github.com/llvm/llvm-project/pull/66316
More information about the cfe-commits
mailing list