linux-user: Put the stack guard page at the top.
authorRichard Henderson <rth@twiddle.net>
Tue, 27 Jul 2010 17:25:35 +0000 (10:25 -0700)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Thu, 29 Jul 2010 06:32:28 +0000 (08:32 +0200)
commitd8e1657b21a7d548a365fb99b08812ba2bef6c86
treee03c2c91877c167340cf1048251283812d31ae46
parent1efcd0019b3833e456035f26642463fe3ce185e8
linux-user: Put the stack guard page at the top.

There are no supported stack-grows-up targets.  We were putting
the guard page at the highest address, i.e. the bottom of the stack.
Use the maximum of host and guest page size for the guard size.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
linux-user/elfload.c