mirror of https://gitee.com/openkylin/qemu.git
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>
This commit is contained in:
parent
f4f1e10a58
commit
9721cf2cd6
|
@ -633,7 +633,7 @@ static int load_flat_file(struct linux_binprm * bprm,
|
||||||
/* Get the pointer's value. */
|
/* Get the pointer's value. */
|
||||||
if (get_user_ual(addr, rp))
|
if (get_user_ual(addr, rp))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
addr = flat_get_addr_from_rp(rp, relval, flags, &persistent);
|
addr = flat_get_addr_from_rp(addr, relval, flags, &persistent);
|
||||||
if (addr != 0) {
|
if (addr != 0) {
|
||||||
/*
|
/*
|
||||||
* Do the relocation. PIC relocs in the data section are
|
* Do the relocation. PIC relocs in the data section are
|
||||||
|
|
Loading…
Reference in New Issue