Oh, this issue may be for all command lines (e.g. -d option), I guess, we need process them all in main() when process command line options.
---------------------------------------- > Subject: Re: [PATCH] linux-user/main.c: Always set QEMU_LD_PREFIX when > interp_prefix is changed > To: riku.voi...@iki.fi > CC: r...@twiddle.net; peter.mayd...@linaro.org; qemu-devel@nongnu.org > From: xili_gchen_5...@hotmail.com > Date: Thu, 10 Sep 2015 13:49:18 +0800 > > On 2015年09月10日 13:43, gang.chen.5...@gmail.com wrote: >> From: Chen Gang <gang.chen.5...@gmail.com> >> >> If qemu sets interp_prfix via command line '-L' instead of environments >> variable QEMU_LD_PREFIX, it will cause syscall execve() failed. Because >> the 2nd qemu has no command line '-L'. >> > > Oh, sorry for typo, "the 2nd" -> "the second". > >> So qemu need always set QEMU_LD_PREFIX when interp_prefix is changed. >> >> Signed-off-by: Chen Gang <gang.chen.5...@gmail.com> > > > Thanks. > -- > Chen Gang > > Open, share, and attitude like air, water, and life which God blessed