Received: from eggs.gnu.org ([2001:4830:134:3::10]:53752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSQLG-0003AG-CZ for qemu-devel@nongnu.org; Sat, 05 Oct 2013 07:48:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VSQL8-0006bB-DZ for qemu-devel@nongnu.org; Sat, 05 Oct 2013 07:48:14 -0400 Received: from mail-qe0-x229.google.com ([2607:f8b0:400d:c02::229]:39841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSQL8-0006ay-8D for qemu-devel@nongnu.org; Sat, 05 Oct 2013 07:48:06 -0400 Received: by mail-qe0-f41.google.com with SMTP id 1so3892381qee.0 for ; Sat, 05 Oct 2013 04:48:05 -0700 (PDT) Sender: Corey Boyle From: "Corey J. Boyle" Date: Sat, 5 Oct 2013 07:46:31 -0400 Message-Id: <1380973591-24956-1-git-send-email-corey@kansanian.com> Subject: [Qemu-devel] [PATCH v2] flatload: fix non-GOT relocations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Riku Voipio , "Corey J. Boyle" From: "Corey J. Boyle" Use target address rather than host address when performing non-GOT relocations Signed-off-by: Corey J. Boyle --- linux-user/flatload.c | 2 +- 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