]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Merge from trunk, r11538 (x86-linux: make ld.so:index redir mandatory
authorJulian Seward <jseward@acm.org>
Mon, 14 Feb 2011 11:50:49 +0000 (11:50 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 14 Feb 2011 11:50:49 +0000 (11:50 +0000)
for glibc-2.12 and later)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_6_BRANCH@11558

coregrind/m_redir.c

index 9172cc26985b2dfcca3c3a051d8f3783dcb788e4..db7131f95dc28c9d59490499945727aff85df273 100644 (file)
@@ -891,7 +891,11 @@ static const HChar* complain_about_stripped_glibc_ldso[]
     "for your Linux distribution to please in future ship a non-",
     "stripped ld.so (or whatever the dynamic linker .so is called)",
     "that exports the above-named function using the standard",
-    "calling conventions for this platform.",
+    "calling conventions for this platform.  The package you need",
+    "to install for fix (1) is called",
+    "",
+    "  On Debian, Ubuntu:                 libc6-dbg",
+    "  On SuSE, openSuSE, Fedora, RHEL:   glibc-debuginfo",
     NULL
   };
 
@@ -923,7 +927,16 @@ void VG_(redir_initialise) ( void )
       add_hardwired_spec(
          "ld-linux.so.2", "index",
          (Addr)&VG_(x86_linux_REDIR_FOR_index),
+#        if defined(GLIBC_2_2) || defined(GLIBC_2_3) || defined(GLIBC_2_4) \
+            || defined(GLIBC_2_5) || defined(GLIBC_2_6) || defined(GLIBC_2_7) \
+            || defined(GLIBC_2_8) || defined(GLIBC_2_9) \
+            || defined(GLIBC_2_10) || defined(GLIBC_2_11)
          NULL
+#        else
+         /* for glibc-2.12 and later, this is mandatory - can't sanely
+            continue without it */
+         complain_about_stripped_glibc_ldso
+#        endif
       );
    }