stand/reloc_elf: Handle relative relocations for arm{,64} and riscv
Extend the powerpc relative relocation handling from r240782 to a
handful of other architectures. This is needed to properly read
dependency information from kernel modules.
(cherry picked from commit 987eabdc2ae1c0beba77e4d3b538155e81c7a7d5)