Usermode exec-stack fix
authorPaul Brook <paul@codesourcery.com>
Wed, 16 Jun 2010 12:03:51 +0000 (13:03 +0100)
committerPaul Brook <paul@codesourcery.com>
Wed, 16 Jun 2010 12:03:51 +0000 (13:03 +0100)
commit4d8cdc0abcc3e4590ba9994eb497ee2587259732
tree20dd2e75e0b7dcf623a084e19e3f5e39a9161f31
parentbbf2ca16bb30c0084d46ba785920582e2263a925
Usermode exec-stack fix

When loading a shared library that requires an executable stack,
glibc uses the mprotext PROT_GROWSDOWN flag to achieve this.
We don't support PROT_GROWSDOWN.
Add a special case to handle changing the stack permissions in this way.

Signed-off-by: Paul Brook <paul@codesourcery.com>
linux-user/elfload.c
linux-user/flatload.c
linux-user/qemu.h
linux-user/syscall.c