summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
diff options
context:
space:
mode:
authorZaara Syeda <syzaara@ca.ibm.com>2018-04-27 15:41:19 +0000
committerZaara Syeda <syzaara@ca.ibm.com>2018-04-27 15:41:19 +0000
commit82dd99e08ed83f9e4bc9a12e4652d160b1873f30 (patch)
tree14a9349033b95e3b2843cac2bf7776c17c925671 /llvm/lib/MC
parent50bf643cfb1a89429095be3ffcdd965f1d670561 (diff)
downloadbcm5719-llvm-82dd99e08ed83f9e4bc9a12e4652d160b1873f30.tar.gz
bcm5719-llvm-82dd99e08ed83f9e4bc9a12e4652d160b1873f30.zip
[PPC64] Add offset to local entry point when calling functions without plt
PPC64 V2 ABI describes two entry points to a function. The global entry point sets up the TOC base pointer. When calling a local function, the call should branch to the local entry point rather than the global entry point. Section 3.4.1 describes using the 3 most significant bits of the st_other field to find out how many instructions there are between the local and global entry point. This patch adds the correct offset required to branch to the local entry point of a function. Differential Revision: https://reviews.llvm.org/D45729 llvm-svn: 331046
Diffstat (limited to 'llvm/lib/MC')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud