Skip to content

Commit

Permalink
flatload: fix non-GOT relocations
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
coreyjboyle authored and Riku Voipio committed Nov 29, 2013
1 parent f4f1e10 commit 9721cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux-user/flatload.c
Expand Up @@ -633,7 +633,7 @@ static int load_flat_file(struct linux_binprm * bprm,
/* Get the pointer's value. */
if (get_user_ual(addr, rp))
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) {
/*
* Do the relocation. PIC relocs in the data section are
Expand Down

0 comments on commit 9721cf2

Please sign in to comment.