]> git.proxmox.com Git - qemu.git/commit - linux-user/syscall.c
linux-user: fake /proc/self/stat
authorAlexander Graf <agraf@suse.de>
Wed, 2 Nov 2011 19:23:25 +0000 (20:23 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Thu, 2 Feb 2012 15:51:20 +0000 (17:51 +0200)
commit480b8e7dd56746c550a8ae9d7d1ba5d22cf1a4ee
tree1632d5ad7b811658843a9d92e7709ddd42b23ba7
parent36c08d498b8ea6995666b805d37c6bb14da66a97
linux-user: fake /proc/self/stat

The boehm gc finds the program's stack starting pointer by
checking /proc/self/stat. Unfortunately, so far it reads
qemu's stack pointer which clearly is wrong.

So let's instead fake the file so the guest program sees the
right address.

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