|
From: | Corey Boyle |
Subject: | Re: [Qemu-devel] [PATCH v2] flatload: fix non-GOT relocations |
Date: | Mon, 11 Nov 2013 09:35:44 -0500 |
From: "Corey J. Boyle" <address@hidden>linux-user/flatload.c | 2 +-
Use target address rather than host address when performing
non-GOT relocations
Signed-off-by: Corey J. Boyle <address@hidden>
---
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
1.7.9.5
[Prev in Thread] | Current Thread | [Next in Thread] |