[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
Thu Jul 9 13:15:18 PDT 2020
NeHuang created this revision.
NeHuang added reviewers: nemanjai, sfertile, MaskRay, stefanp, hfinkel, power-llvm-team.
NeHuang added a project: LLVM.
Herald added subscribers: llvm-commits, shchenz, arichardson, emaste.
Herald added a reviewer: espindola.
The PC Relative code now allows for calls that are marked with the relocation R_PPC64_REL24_NOTOC. This indicates that the caller does not have a valid TOC pointer in R2 <https://reviews.llvm.org/source/clang-tools-extra/> and does not require R2 <https://reviews.llvm.org/source/clang-tools-extra/> to be restored after the call. This patch is added to support local calls to callees that require a TOC
Repository:
rG LLVM Github Monorepo
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83504.276812.patch
Type: text/x-patch
Size: 7305 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200709/87cccfb8/attachment.bin>
More information about the llvm-commits
mailing list