[PATCH] D98946: [AIX][TLS] Add support for TLS variables to XCOFF object writer

Digger Lin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 22 11:58:08 PDT 2021


DiggerLin added inline comments.


================
Comment at: llvm/lib/MC/XCOFFObjectWriter.cpp:314
+  case XCOFF::XMC_UL:
+    assert(XCOFF::XTY_SD != MCSec->getCSectType() &&
+           "Mapping invalid csect. CSECT with tbss storage class must not be "
----------------
NeHuang wrote:
> DiggerLin wrote:
> > should be 
> > XCOFF::XTY_CM == MCSec->getCSectType()  ?
> For the TLS external reference case, we are setting SMC to `XCOFF::XMC_UL` with the csect type of ER in the function `TargetLoweringObjectFileXCOFF::getSectionForExternalReference`
the TLS  external symbol  not put in the .tbss .


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98946/new/

https://reviews.llvm.org/D98946



More information about the llvm-commits mailing list