qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

flatload: fix non-GOT relocations

Use target address rather than host address when performing
non-GOT relocations

Signed-off-by: Corey J. Boyle <corey@kansanian.com>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>

authored by

Corey J. Boyle and committed by
Riku Voipio
9721cf2c f4f1e10a

+1 -1
+1 -1
linux-user/flatload.c
··· 633 633 /* Get the pointer's value. */ 634 634 if (get_user_ual(addr, rp)) 635 635 return -EFAULT; 636 - addr = flat_get_addr_from_rp(rp, relval, flags, &persistent); 636 + addr = flat_get_addr_from_rp(addr, relval, flags, &persistent); 637 637 if (addr != 0) { 638 638 /* 639 639 * Do the relocation. PIC relocs in the data section are