]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix problem with FC2's vdso (sysinfo) page, which lives at a low,
authorJeremy Fitzhardinge <jeremy@valgrind.org>
Mon, 14 Jun 2004 02:36:09 +0000 (02:36 +0000)
committerJeremy Fitzhardinge <jeremy@valgrind.org>
Mon, 14 Jun 2004 02:36:09 +0000 (02:36 +0000)
random address.  This gets unmapped as part of the client setup, and
causes syscalls to fail as a result.  This patch simply disregards the
sysinfo page.  It seems like a blunt fix, but I don't think anything
depends on a sysinfo page.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2412

coregrind/stage1.c

index c11a174596437ec70d92715ff1d24f2b358de392..389e2c65fcff44cd08d37f5cc2ff16e4305b4ecb 100644 (file)
@@ -132,6 +132,11 @@ static void *fix_auxv(void *v_init_esp, const struct exeinfo *info)
         seen |= 8;
         auxv->u.a_val = info->entry;
         break;
+
+      case AT_SYSINFO:
+      case AT_SYSINFO_EHDR:
+        auxv->a_type = AT_IGNORE;
+        break;
       }
    }