[all-commits] [llvm/llvm-project] 61358d: [JITLink][PowerPC] Add TOC and relocations for ppc64

bzEq via All-commits all-commits at lists.llvm.org
Sun Jul 9 20:27:10 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 61358d4fbeb3db1c1f7be278ae599ae3d79499d7
      https://github.com/llvm/llvm-project/commit/61358d4fbeb3db1c1f7be278ae599ae3d79499d7
  Author: Kai Luo <lkail at cn.ibm.com>
  Date:   2023-07-10 (Mon, 10 Jul 2023)

  Changed paths:
    M llvm/include/llvm/ExecutionEngine/JITLink/TableManager.h
    M llvm/include/llvm/ExecutionEngine/JITLink/ppc64.h
    M llvm/lib/ExecutionEngine/JITLink/ELF_ppc64.cpp
    M llvm/lib/ExecutionEngine/JITLink/ppc64.cpp
    A llvm/test/ExecutionEngine/JITLink/ppc64/ELF_ppc64le_ehframe.s
    A llvm/test/ExecutionEngine/JITLink/ppc64/ELF_ppc64le_relocations.s
    A llvm/test/ExecutionEngine/JITLink/ppc64/ppc64le-relocs.s

  Log Message:
  -----------
  [JITLink][PowerPC] Add TOC and relocations for ppc64

This patch builds TOC and adds common relocations for ppc64.

To build TOC, sections belong to TOC are merged into one section, serves as GOT and small data accessing.

Relocations commonly seen in local function call, external function call and global variable reference are added.

References
- https://youtu.be/i-inxFudrgI
- https://maskray.me/blog/2023-02-26-linker-notes-on-power-isa
- https://openpowerfoundation.org/specifications/64bitelfabi/

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D154198




More information about the All-commits mailing list