Fix `arm` code writers and relocators so they support cross-arch