[PATCH] D100214: [AIX][TLS] Add support for TLSGD relocations to XCOFF objects
Victor Huang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 9 09:47:20 PDT 2021
NeHuang created this revision.
NeHuang added reviewers: nemanjai, jasonliu, DiggerLin, hubert.reinterpretcast, sfertile, daltenty, power-llvm-team.
Herald added a subscriber: hiraditya.
NeHuang requested review of this revision.
Herald added a project: LLVM.
This patch adds support for TLSGD relocations to XCOFF objects:
- Add branch abloste reloction R_RBA, R_TLS relocation for the variable offset for the tlsgd model and R_TLSM for the region handle for the tlsgd model
- Put .__tls_get_addr symbol in the ProgramCodeSects with XTY_ER property
- Fix the switch section failure between the TC Entry of variable offset and region handle
- Add new variantKinds for the symbol's variable offset and region handle
- Print the proper relocation specifier @gd in the asm streamer when emitting the TC Entry for the variable offset for the symbol
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D100214
Files:
llvm/include/llvm/MC/MCExpr.h
llvm/lib/MC/MCELFStreamer.cpp
llvm/lib/MC/MCExpr.cpp
llvm/lib/MC/XCOFFObjectWriter.cpp
llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp
llvm/lib/Target/PowerPC/MCTargetDesc/PPCXCOFFObjectWriter.cpp
llvm/lib/Target/PowerPC/PPC.h
llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
llvm/test/CodeGen/PowerPC/aix-tls-gd-double.ll
llvm/test/CodeGen/PowerPC/aix-tls-gd-int.ll
llvm/test/CodeGen/PowerPC/aix-tls-gd-longlong.ll
llvm/test/CodeGen/PowerPC/aix-tls-xcoff-reloc-large.ll
llvm/test/CodeGen/PowerPC/aix-tls-xcoff-reloc.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100214.336502.patch
Type: text/x-patch
Size: 70228 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210409/e9dfca4b/attachment-0001.bin>
More information about the llvm-commits
mailing list