patch-coregrind_m_redir_c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --- valgrind-3.9.0.orig/coregrind/m_redir.c 2013-10-23 12:50:14.000000000 +0200
  2. +++ valgrind-3.9.0/coregrind/m_redir.c 2013-11-07 14:34:44.000000000 +0100
  3. @@ -1214,9 +1214,6 @@ void VG_(redir_initialise) ( void )
  4. add_hardwired_spec(
  5. "ld-linux.so.2", "index",
  6. (Addr)&VG_(x86_linux_REDIR_FOR_index), mandatory);
  7. - add_hardwired_spec(
  8. - "ld-linux.so.2", "strlen",
  9. - (Addr)&VG_(x86_linux_REDIR_FOR_strlen), mandatory);
  10. }
  11. # elif defined(VGP_amd64_linux)
  12. @@ -1236,22 +1233,6 @@ void VG_(redir_initialise) ( void )
  13. /* If we're using memcheck, use these intercepts right from
  14. the start, otherwise ld.so makes a lot of noise. */
  15. - if (0==VG_(strcmp)("Memcheck", VG_(details).name)) {
  16. -
  17. - add_hardwired_spec(
  18. - "ld-linux-x86-64.so.2", "strlen",
  19. - (Addr)&VG_(amd64_linux_REDIR_FOR_strlen),
  20. -# if defined(GLIBC_2_2) || defined(GLIBC_2_3) || defined(GLIBC_2_4) \
  21. - || defined(GLIBC_2_5) || defined(GLIBC_2_6) || defined(GLIBC_2_7) \
  22. - || defined(GLIBC_2_8) || defined(GLIBC_2_9)
  23. - NULL
  24. -# else
  25. - /* for glibc-2.10 and later, this is mandatory - can't sanely
  26. - continue without it */
  27. - complain_about_stripped_glibc_ldso
  28. -# endif
  29. - );
  30. - }
  31. # elif defined(VGP_ppc32_linux)
  32. /* If we're using memcheck, use these intercepts right from