From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCtyy-0002RF-7Z for qemu-devel@nongnu.org; Tue, 14 Jun 2016 15:26:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCtyr-00026J-RP for qemu-devel@nongnu.org; Tue, 14 Jun 2016 15:26:39 -0400 Received: from mail-it0-x22a.google.com ([2607:f8b0:4001:c0b::22a]:38463) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCtyr-00026F-Mu for qemu-devel@nongnu.org; Tue, 14 Jun 2016 15:26:33 -0400 Received: by mail-it0-x22a.google.com with SMTP id h190so3180566ith.1 for ; Tue, 14 Jun 2016 12:26:33 -0700 (PDT) From: Joel Holdsworth Date: Tue, 14 Jun 2016 20:26:21 +0100 Message-Id: <1465932382-28645-4-git-send-email-joel.holdsworth@vcatechnology.com> In-Reply-To: <1465932382-28645-1-git-send-email-joel.holdsworth@vcatechnology.com> References: <1465932382-28645-1-git-send-email-joel.holdsworth@vcatechnology.com> Subject: [Qemu-devel] [PATCH v2 3/4] linux-user: pass elf interpreter prefix in execve List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Vasileios.Kalintiris@imgtec.com, riku.voipio@iki.fi, Joel Holdsworth --- linux-user/syscall.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 440986e..1513f0f 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -6667,7 +6667,7 @@ static abi_long qemu_execve(char *filename, char *argv[], char *i_arg = NULL, *i_name = NULL; char **qemu_argp, **argp; int i, j; - size_t qemu_argc = 3, argc, host_envc, envpc; + size_t qemu_argc = 5, argc, host_envc, envpc; int fd, ret; char *cp; size_t def_envc = 0, undef_envc = 0; @@ -6782,6 +6782,8 @@ static abi_long qemu_execve(char *filename, char *argv[], /* set up the qemu arguments */ *argp++ = strdup(qemu_execve_path); + *argp++ = strdup("-L"); + *argp++ = strdup(path("/")); /* add arguments for the enironment variables */ for (i = 0; i < def_envc; i++) { -- 1.9.1