for a rwx mapping which contains the startup %esp.
Might be better to look for just rw-. Stack might not be executable
if there's a noexec patch, and x86-64 actually enforces the x bit
distinctly from r.
--> Look for just rw-.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1431
{
Addr lastword;
if (size == 0) return;
- if (r != 'r' || w != 'w' || x != 'x') return;
+ if (r != 'r' || w != 'w'
+ /* || x != 'x' --not necessarily so on x86-64*/
+ ) return;
lastword = start + size - 4;
if (start <= VG_(esp_at_startup)
&& VG_(esp_at_startup) <= lastword) {