From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HfitX-000154-4x for qemu-devel@nongnu.org; Sun, 22 Apr 2007 16:42:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HfitU-00014n-O5 for qemu-devel@nongnu.org; Sun, 22 Apr 2007 16:42:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HfitU-00014j-Ci for qemu-devel@nongnu.org; Sun, 22 Apr 2007 16:42:48 -0400 Received: from wr-out-0506.google.com ([64.233.184.224]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HfioA-0006Wz-0C for qemu-devel@nongnu.org; Sun, 22 Apr 2007 16:37:18 -0400 Received: by wr-out-0506.google.com with SMTP id i20so2471162wra for ; Sun, 22 Apr 2007 13:37:17 -0700 (PDT) Message-ID: <53fbb7580704221337o2de39288uc7e27dccdd30dd5a@mail.gmail.com> Date: Sun, 22 Apr 2007 23:37:16 +0300 From: "Lauri Leukkunen" Sender: lauri.leukkunen@gmail.com Subject: Re: [Qemu-devel] [PATCH] Make user-mode emu drop LD_PRELOAD In-Reply-To: <200704222103.41727.paul@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <53fbb7580704221239y30eb99c2of276cb62806a7ca3@mail.gmail.com> <200704222103.41727.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: qemu-devel@nongnu.org On 4/22/07, Paul Brook wrote: > On Sunday 22 April 2007 20:39, Lauri Leukkunen wrote: > > This patch makes user-mode emulation drop LD_PRELOAD environment variable > > by default and adds an option "-keep-ld-preload" to override this > > behaviour. > > Why? My use case is for scratchbox 2, I want to have libsb2.so preloaded for qemu-arm itself, but I don't want the target process to have to load it as there is no such library for it. I just realized that this patch is probably not doing the right thing anyway, I think it should modify the target process environment in loader_exec instead of unsetting it for qemu itself, end result is more or less the same for simple cases, but I need to check where the environment is inherited from if the emulated process execs another. /lauri