Valgrind: r16335 - in /trunk: coregrind/m_redir.c shared/vg_replace_strmem.c

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Valgrind: r16335 - in /trunk: coregrind/m_redir.c shared/vg_replace_strmem.c

svn-2
Author: petarj
Date: Fri May  5 15:36:46 2017
New Revision: 16335

Log:
mips32: remove false warnings on Android

Remove false warnings for strlen and strchr on Android.

Patch by Tamara Vlahovic.

Modified:
    trunk/coregrind/m_redir.c
    trunk/shared/vg_replace_strmem.c

Modified: trunk/coregrind/m_redir.c
==============================================================================
--- trunk/coregrind/m_redir.c (original)
+++ trunk/coregrind/m_redir.c Fri May  5 15:36:46 2017
@@ -1576,6 +1576,14 @@
          (Addr)&VG_(mips32_linux_REDIR_FOR_index),
          complain_about_stripped_glibc_ldso
       );
+#  if defined(VGPV_mips32_linux_android)
+      add_hardwired_spec(
+         "NONE", "__dl_strlen",
+         (Addr)&VG_(mips32_linux_REDIR_FOR_strlen),
+         NULL
+      );
+#  endif
+
    }
 
 #  elif defined(VGP_mips64_linux)

Modified: trunk/shared/vg_replace_strmem.c
==============================================================================
--- trunk/shared/vg_replace_strmem.c (original)
+++ trunk/shared/vg_replace_strmem.c Fri May  5 15:36:46 2017
@@ -254,6 +254,10 @@
   STRCHR(VG_Z_LD_LINUX_X86_64_SO_2, index)
 # endif
 
+#if defined(VGPV_mips32_linux_android)
+  STRCHR(NONE,        __dl_strchr)
+#endif
+
 #elif defined(VGO_darwin)
  STRCHR(VG_Z_LIBC_SONAME, strchr)
 # if DARWIN_VERS == DARWIN_10_9


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers