[PATCH] D62800: [ELF][PPC64] Rename some PPC64 ELFv2 specific RelExpr from R_PPC_* to R_PPC64_*

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 2 23:03:04 PDT 2019


MaskRay created this revision.
MaskRay added reviewers: ruiu, sfertile.
Herald added subscribers: llvm-commits, jsji, kbarton, arichardson, nemanjai, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.

The following abstract relocation types (RelExpr) are PPC64 ELFv2 ABI specific,
not used by PPC32. So rename them to prevent confusion when the PPC32 port is improved.

- R_PPC_CALL R_PPC_CALL_PLT: R_PPC_CALL_PLT represents R_PPC64_REL14 and R_PPC64_REL24. If the function is not preemptable, R_PPC_CALL_PLT can be optimized to R_PPC_CALL: the formula adjusts the symbol VA from the global entry point to the local entry point.
- R_PPC_TOC: represents R_PPC64_TOC. We don't have a test. Add one to ppc64-relocs.s


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D62800

Files:
  ELF/Arch/PPC64.cpp
  ELF/InputSection.cpp
  ELF/Relocations.cpp
  ELF/Relocations.h
  test/ELF/ppc64-relocs.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62800.202655.patch
Type: text/x-patch
Size: 5861 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190603/c8c7ef94/attachment.bin>


More information about the llvm-commits mailing list