[all-commits] [llvm/llvm-project] 118366: [PowerPC] Implement R_PPC64_REL24_NOTOC calls, cal...
Victor Huang via All-commits
all-commits at lists.llvm.org
Fri Jul 10 05:24:57 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 118366dcb6c35239c1c816d109230d6f7f3660af
https://github.com/llvm/llvm-project/commit/118366dcb6c35239c1c816d109230d6f7f3660af
Author: Victor Huang <wei.huang at ibm.com>
Date: 2020-07-10 (Fri, 10 Jul 2020)
Changed paths:
M lld/ELF/Arch/PPC64.cpp
A lld/test/ELF/Inputs/ppc64-callee-global-hidden.s
A lld/test/ELF/ppc64-pcrel-call-to-pcrel.s
Log Message:
-----------
[PowerPC] Implement R_PPC64_REL24_NOTOC calls, callee also has no TOC
The PC Relative code 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 and does not require R2 to be restored after the call.
This patch is added to support local calls to callees tha also do not have a TOC.
Reviewed By: sfertile, MaskRay, stefanp
Differential Revision: https://reviews.llvm.org/D82816
More information about the All-commits
mailing list