[PATCH] D79625: [PowerPC] Extend .reloc directive on PowerPC
Stefan Pintilie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 15 12:01:47 PDT 2020
stefanp updated this revision to Diff 278270.
stefanp edited the summary of this revision.
stefanp added a comment.
Moved the rest of the work to the target indep side after the patch D83751 <https://reviews.llvm.org/D83751>.
The patch still adds support for R_PPC64_PCREL_OPT and adds support for variable labels:
pld 3, vec at got@pcrel(0), 1
.Lpcrel1=.-8 // Variable labels.
... More instructions possible here ...
.reloc .Lpcrel1,R_PPC64_PCREL_OPT,.-.Lpcrel1
lwa 3, 4(3)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79625/new/
https://reviews.llvm.org/D79625
Files:
llvm/include/llvm/BinaryFormat/ELFRelocs/PowerPC64.def
llvm/lib/MC/MCObjectStreamer.cpp
llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp
llvm/lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp
llvm/lib/Target/PowerPC/MCTargetDesc/PPCFixupKinds.h
llvm/test/MC/PowerPC/pcrel-reloc-with-expr.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79625.278270.patch
Type: text/x-patch
Size: 18829 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200715/c8e7783f/attachment.bin>
More information about the llvm-commits
mailing list