================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits