[PATCH] D154198: [JITLink][PowerPC] Add TOC and relocations for ppc64
Kai Luo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 30 03:23:54 PDT 2023
lkail created this revision.
lkail added reviewers: lhames, nemanjai, stefanp, MaskRay, uweigand, shchenz, Esme, PowerPC.
Herald added subscribers: kbarton, hiraditya.
Herald added a project: All.
lkail requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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://www.youtube.com/watch?v=i-inxFudrgI&t=1116s&ab_channel=LLVM
- https://maskray.me/blog/2023-02-26-linker-notes-on-power-isa
- https://openpowerfoundation.org/specifications/64bitelfabi/
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D154198
Files:
llvm/include/llvm/ExecutionEngine/JITLink/TableManager.h
llvm/include/llvm/ExecutionEngine/JITLink/ppc64.h
llvm/lib/ExecutionEngine/JITLink/ELF_ppc64.cpp
llvm/lib/ExecutionEngine/JITLink/ppc64.cpp
llvm/test/ExecutionEngine/JITLink/ppc64/ELF_ppc64le_ehframe.s
llvm/test/ExecutionEngine/JITLink/ppc64/ELF_ppc64le_relocations.s
llvm/test/ExecutionEngine/JITLink/ppc64/ppc64le-relocs.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154198.536168.patch
Type: text/x-patch
Size: 33465 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230630/fc9ef2ee/attachment.bin>
More information about the llvm-commits
mailing list