cmd/link: need to handle new-style LoongArch relocs [1.19 backport]
@dr2chase requested issue #54222 to be considered for backport to the next 1.19 minor release.
@gopherbot please open backport issues.
This already has a fix, ready to go and approved by Loong, by the @cherrymui . https://go.dev/cl/458836 This fixes a persistently broken test on linux-loong64 with the newer GNU toolchain.
Change https://go.dev/cl/458836 mentions this issue: [release-branch.go1.19] cmd/link: recognize the new R_LARCH_32_PCREL type on loong64
Approved. This minimal backport is needed to fix the loong64 builder on the 1.19 release branch. Only 1.19 needs this fix.
Closed by merging 24963e5c06e8b90391f46f1bcf825c72342fa0eb to release-branch.go1.19.