Suppress AT_SYSINFO in the auxiliary vector because it contains a
pointer to the system call routine in the sysinfo page and older
versions of glibc will use it. Fixex bug #115496.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5079 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_main.c b/coregrind/m_main.c
index 80343f7..ada15bf 100644
--- a/coregrind/m_main.c
+++ b/coregrind/m_main.c
@@ -513,7 +513,6 @@
case AT_EGID:
case AT_CLKTCK:
case AT_FPUCW:
- case AT_SYSINFO:
/* All these are pointerless, so we don't need to do
anything about them. */
break;
@@ -586,12 +585,13 @@
auxv->u.a_val = 0;
break;
+ case AT_SYSINFO:
# if !defined(VGP_ppc32_linux)
case AT_SYSINFO_EHDR:
+# endif
/* Trash this, because we don't reproduce it */
auxv->a_type = AT_IGNORE;
break;
-# endif
default:
/* stomp out anything we don't know about */