fixed computation of local offsets on ARM