[LLD][PowerPC] Add a pc-rel based long branch thunk
authorVictor Huang <wei.huang@ibm.com>
Fri, 28 Aug 2020 15:40:48 +0000 (10:40 -0500)
committerVictor Huang <wei.huang@ibm.com>
Fri, 28 Aug 2020 15:40:48 +0000 (10:40 -0500)
commitbfc76366125b846bfdfac5cc19c356542a399e45
tree71dee6ae375048b45f3400cd3ea8700e40e99862
parentb9b954b8bbf0feed1aecde78cb6976134e460e91
[LLD][PowerPC] Add a pc-rel based long branch thunk

In this patch, a pc-rel based long branch thunk is added for the local
call protocol that caller and callee does not use TOC.

Reviewed By: sfertile, nemanjai

Differential Revision: https://reviews.llvm.org/D86706
lld/ELF/Thunks.cpp
lld/test/ELF/ppc64-pcrel-long-branch-error.s [new file with mode: 0644]
lld/test/ELF/ppc64-pcrel-long-branch.s [new file with mode: 0644]