linux-user: increment MAX_ARG_PAGES
authorArnaud Patard <arnaud.patard@rtp-net.org>
Fri, 19 Jun 2009 07:39:36 +0000 (10:39 +0300)
committerRiku Voipio <riku.voipio@iki.fi>
Wed, 8 Jul 2009 14:01:08 +0000 (17:01 +0300)
commitfd4d81dd04b4e606ce40a41d66368ba77c77c753
tree54b9de691a9fe2a0d5b87fdf5d6922825b13cdbf
parente8d2a88755b849bdadaf80d19e342eade3c017bc
linux-user: increment MAX_ARG_PAGES

There's a error When doing something like that :
find / -type f -print0 | xargs -0 echo

[ done in a arm chroot with qemu-arm and linux binfmt stuff or with
find / -type f -print0 | qemu-arm -L <path> <path>/usr/bin/xargs -0
echo ]

Doing this outsite qemu is fine. The problem was the huge number of
parameters. Increasing MAX_ARG_PAGES is fixing that.

While I was at it, I've modified linux-user/main.c to report error code
of loader_exec. It helps to debug/know what's wrong.

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
linux-user/main.c
linux-user/qemu.h