Support R_PPC_REL32 to fix "ld.lld: error: drti.c:(.SUNW_dof+0x4E4): internal linker error: cannot read addend for relocation R_PPC_REL32" while building perl5.32 for powerpc. Also add some common relocation types for AArch64, PPC, and PPC64.
The patch was taken from https://reviews.llvm.org/D120535 and from LLVM15 to LLVM13 with trivial changes. The issue is a blocker for the upcoming 13.1-RELEASE.
Original patch commited: https://reviews.llvm.org/rG767e64fc11d7734843ec5bb0bd3f7330541bb1a6
If you think it's too risky we can restrict the change to powerpc only.