aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorKai Luo <lkail@cn.ibm.com>2023-07-24 14:00:20 +0800
committerKai Luo <lkail@cn.ibm.com>2023-07-24 14:00:53 +0800
commit995f199f0a7645bac81f1786a623d66ca44dd415 (patch)
treed94b622a2c4c65297b4766c96bd6674104ebb18b /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parentde0d27c1a417491bd4274ad9e57a66bfb58a55c3 (diff)
downloadllvm-995f199f0a7645bac81f1786a623d66ca44dd415.zip
llvm-995f199f0a7645bac81f1786a623d66ca44dd415.tar.gz
llvm-995f199f0a7645bac81f1786a623d66ca44dd415.tar.bz2
[JITLink][PowerPC] Correct handling of R_PPC64_REL24_NOTOC
According to the ELFv2 ABI > This relocation type is used to specify a function call where the TOC pointer is not initialized. It is similar to R_PPC64_REL24 in that it specifies a symbol to be resolved. If the symbol resolves to a function that requires a TOC pointer (as determined by st_other bits) then a link editor must arrange for the call to be via the global entry point of the called function. Any stub code must not rely on a valid TOC base address in r2. This patch fixes handling of `R_PPC64_REL24_NOTOC` by using the same stub code sequence as lld. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D155672
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions