qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] linux-user: add binfmt wrapper for argv[0] hand


From: Alexander Graf
Subject: Re: [Qemu-devel] [PATCH] linux-user: add binfmt wrapper for argv[0] handling
Date: Sat, 29 Oct 2011 20:08:39 +0200

On 30.09.2011, at 19:46, Alexander Graf wrote:

> When using qemu's linux-user binaries through binfmt, argv[0] gets lost
> along the execution because qemu only gets passed in the full file name
> to the executable while argv[0] can be something completely different.
> 
> This breaks in some subtile situations, such as the grep and make test
> suites.
> 
> This patch adds a wrapper binary called qemu-$TARGET-binfmt that can be
> used with binfmt's P flag which passes the full path _and_ argv[0] to
> the binfmt handler.
> 
> The binary would be smart enough to be versatile and only exist in the
> system once, creating the qemu binary path names from its own argv[0].
> However, this seemed like it didn't fit the make system too well, so
> we're currently creating a new binary for each target archictecture.
> 
> CC: Reinhard Max <address@hidden>
> Signed-off-by: Alexander Graf <address@hidden>

Ping?

Alex




reply via email to

[Prev in Thread] Current Thread [Next in Thread]