Reuse the amd64 loader relocation code on arm64
There is no need to keep multiple copies of the relocation code. The
amd64 code works on arm64 with a few small changes to relocation types.
(cherry picked from commit f6f0b849fb2683feebf2416a793964be0bd05cc5)