[ELF][PPC64] Merge PPC64R12SetupStub and PPC64PCRelPLTStub. NFC
authorFangrui Song <i@maskray.me>
Mon, 27 Feb 2023 22:33:18 +0000 (14:33 -0800)
committerFangrui Song <i@maskray.me>
Mon, 27 Feb 2023 22:33:18 +0000 (14:33 -0800)
commit8ce135123ec574406c72333798380f486b734fc8
treec6b060c0a3368eca7a03b23b8b60f33688d1a46c
parentd65ed8cde0a2b595a36f031d65158b08e6421b4f
[ELF][PPC64] Merge PPC64R12SetupStub and PPC64PCRelPLTStub. NFC

PPC64PCRelPLTStub (from D83669) duplicates lot of code from
PPC64R12SetupStub. Just merge them.

Note: PPC64R12SetupStub does not correctly handle long branch to a
non-preemptible non-TOC code.
lld/ELF/Thunks.cpp