diff mbox

[3/5] flatload: fix non-GOT relocations

Message ID 9721cf2cd6ecfc50d2ab1349e27b53c4bc36df54.1385732338.git.riku.voipio@linaro.org
State New
Headers show

Commit Message

Riku Voipio Nov. 29, 2013, 1:43 p.m. UTC
From: "Corey J. Boyle" <corey@kansanian.com>

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>
---
 linux-user/flatload.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/linux-user/flatload.c b/linux-user/flatload.c
index 58f679e..ceb89bb 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