[PATCH] D83504: [PowerPC] Implement R_PPC64_REL24_NOTOC local calls. callee has a TOC

Victor Huang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 14 14:06:08 PDT 2020


NeHuang updated this revision to Diff 277966.
NeHuang marked an inline comment as done.
NeHuang added a comment.

- Added a fix to use `paddi` instead of `pld` to put the callee global entry point to `r12`
- Added `enum` for PPCInstrMasks. e.g. `PADDI_R12_NO_DISP` and `MTCTR_R12` in `llvm/include/llvm/Object/ELF.h`
- Updated the offset computation for r12 set up stub and test case.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D83504

Files:
  lld/ELF/Arch/PPC64.cpp
  lld/ELF/Target.h
  lld/ELF/Thunks.cpp
  lld/test/ELF/ppc64-pcrel-call-to-toc.s
  llvm/include/llvm/Object/ELF.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83504.277966.patch
Type: text/x-patch
Size: 7770 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200714/f8e80b09/attachment-0001.bin>


More information about the llvm-commits mailing list