Initial rough hack to spot the stack segment at startup by looking
for a rwx mapping which contains the startup %esp.  This should be
more robust than the previous mechanism, which checked a small number
of known places and gave up if none matched.  This change is motivated
by Gentoo Linux's high security mode, in which the stack location is
chosen randomly for each new process.

Thanks to Catherine Allen for helping out on this.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1422 a5019735-40e9-0310-863c-91ae7b9d1cf9
2 files changed