KAMEZAWA Hiroyuki 83d2cd3de4 [IA64] bugfix stack layout upside-down
ia64 expects following vm layout:

== low memory
[register-stack grows up]
[memory-stack grows down]
== high memory

But the code assigns the base of the register stack at the
maximum stack size offset from the fixed address where the
stack *might* start.  Stack randomization will result in the
memory stack starting at a lower address than this, and if the
user has set a low stack limit with "ulimit -s", then you can
end up with the register stack above the memory stack (or if
you were very unlucky right on top of it!).

Fix: Calculate the base address for the register stack starting
from the actual address of the memory stack.

Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
2007-03-29 15:15:24 -07:00
..
2007-03-08 11:20:17 -08:00
2007-03-06 14:49:24 -08:00
2007-03-29 15:15:24 -07:00
2007-03-28 13:59:37 -07:00
2005-04-16 15:20:36 -07:00
2007-03-08 11:20:17 -08:00
2005-04-16 15:20:36 -07:00
2007-03-19 23:41:51 -04:00
2006-06-21 14:31:07 -07:00
2005-04-16 15:20:36 -07:00