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 originally taken from https://reviews.llvm.org/D120535 and from LLVM15 to LLVM13 with trivial changes. O original patch wasn't commited to the upstream branch yet, but the issue is a blocker for the upcoming 13.1-RELEASE.
If you think it's too risky we can restrict the change to powerpc only.