summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSean Fertile <sfertile@ca.ibm.com>2018-05-06 19:13:29 +0000
committerSean Fertile <sfertile@ca.ibm.com>2018-05-06 19:13:29 +0000
commitd2e887d2f6512e7ccb6d0aab2e74107204c8963c (patch)
tree6f481455e354c529e1b05853d1035fe1bdf11262 /llvm/lib
parentcb2abc79778029d881daecc5bab00b920e955f46 (diff)
downloadbcm5719-llvm-d2e887d2f6512e7ccb6d0aab2e74107204c8963c.tar.gz
bcm5719-llvm-d2e887d2f6512e7ccb6d0aab2e74107204c8963c.zip
[PPC64] Emit plt call stubs to the text section rather then the plt section.
On PowerPC calls to functions through the plt must be done through a call stub that is responsible for: 1) Saving the toc pointer to the stack. 2) Loading the target functions address from the plt into both r12 and the count register. 3) Indirectly branching to the target function. Previously we have been emitting these call stubs to the .plt section, however the .plt section should be reserved for the lazy symbol resolution stubs. This patch moves the call stubs to the text section by moving the implementation from writePlt to the thunk framework. Differential Revision: https://reviews.llvm.org/D46204 llvm-svn: 331607
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud