qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2] linux-user: make binfmt flag O require P


From: Alexander Graf
Subject: Re: [Qemu-devel] [PATCH v2] linux-user: make binfmt flag O require P
Date: Tue, 15 Jul 2014 14:02:55 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130910 Thunderbird/17.0.9

On 07/14/2014 11:37 PM, Joakim Tjernlund wrote:
Joakim Tjernlund/Transmode wrote on 2014/07/14 23:04:51:
Why do we need to modify argv[] here when we are building a
target_argv[] further down anyway?
Because parse_opts() will not do it for me and I cannot figure out how
to modify
parse_opts() whithout breaking it.
I took another look and now I came up with:

 From 886985747369947e3b28d7a5fb807abd4beae10c Mon Sep 17 00:00:00 2001
From: Joakim Tjernlund <address@hidden>
Date: Mon, 14 Jul 2014 20:17:28 +0200
Subject: [PATCH] linux-user: make binfmt flag O require P

QEMU can autodetect if it is started from Linux binfmt loader
when binfmt flag O is on.
Use that and require binfmt flag P as well which will enable QEMU
to pass in correct argv0 to the application.

Signed-off-by: Joakim Tjernlund <address@hidden>

Acked-by: Alexander Graf <address@hidden>


Alex




reply via email to

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