Re: [Qemu-devel] [PATCH] osdep: Get environment pointer from global variable

2013-12-07 Thread Peter Maydell
On 7 December 2013 13:14, Stefan Weil wrote: > Linux provides a global variable __environ, so it is not necessary to > use envp from main and propagate it via qemu_init_auxval. I don't think this will work, because __environ changes whenever the environment is modified (eg by setenv() calls). It'

[Qemu-devel] [PATCH] osdep: Get environment pointer from global variable

2013-12-07 Thread Stefan Weil
Linux provides a global variable __environ, so it is not necessary to use envp from main and propagate it via qemu_init_auxval. Signed-off-by: Stefan Weil --- include/qemu/osdep.h | 12 linux-user/main.c|3 +-- util/getauxval.c |9 - vl.c |