diff options
author | Corey J. Boyle | 2013-10-05 13:46:31 +0200 |
---|---|---|
committer | Riku Voipio | 2013-11-29 09:58:37 +0100 |
commit | 9721cf2cd6ecfc50d2ab1349e27b53c4bc36df54 (patch) | |
tree | 6ed82553d21dec36caecd72bc75c2f8af8e693df /linux-user | |
parent | linux-user: Implement handling of 5 POSIX timer syscalls. (diff) | |
download | qemu-9721cf2cd6ecfc50d2ab1349e27b53c4bc36df54.tar.gz qemu-9721cf2cd6ecfc50d2ab1349e27b53c4bc36df54.tar.xz qemu-9721cf2cd6ecfc50d2ab1349e27b53c4bc36df54.zip |
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>
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/flatload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/flatload.c b/linux-user/flatload.c index 58f679e072..ceb89bb6ea 100644 --- a/linux-user/flatload.c +++ b/linux-user/flatload.c @@ -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 |