When running linux-user programs in QEMU, the guest program can examine itself by checking /proc/self/ files. And some libraries really do use this!
Unfortunately, when checking /proc/self/ today, the guest program sees the QEMU files, exposing wrong information to the guest program. This patch set fakes auxv, maps and stat to make gtk, pthread and boehm gc happy. Alex Alexander Graf (5): linux-user: save auxv length linux-user: add open() hijack infrastructure linux-user: fake /proc/self/maps linux-user: fake /proc/self/stat linux-user: fake /proc/self/auxv linux-user/elfload.c | 15 ++----- linux-user/qemu.h | 1 + linux-user/syscall.c | 123 ++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 125 insertions(+), 14 deletions(-)