OSDN Git Service

linux-user: fake /proc/self/auxv
authorAlexander Graf <agraf@suse.de>
Wed, 2 Nov 2011 19:23:26 +0000 (20:23 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Thu, 2 Feb 2012 15:51:20 +0000 (17:51 +0200)
commit257450ee59fd7e781cb4e2316ddc845c40b9fc42
tree3fca131d092e6a1f3cc4023733bb003e6e0b61d9
parent480b8e7dd56746c550a8ae9d7d1ba5d22cf1a4ee
linux-user: fake /proc/self/auxv

Gtk tries to read /proc/self/auxv to find its auxv table instead of
taking it from its own program memory space.

However, when running with linux-user, we see the host's auxv which
clearly exposes wrong information. so let's instead expose the guest
memory backed auxv tables via /proc/self/auxv as well.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c