aboutsummaryrefslogtreecommitdiffstats
path: root/main/valgrind/musl-fixes.patch
blob: c7f65b08194e0cf01d0d606f27e1210a50f3f78f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
diff -upr valgrind-3.11.0.orig/configure.ac valgrind-3.11.0/configure.ac
--- valgrind-3.11.0.orig/configure.ac	2015-10-03 02:28:18.597612716 +0200
+++ valgrind-3.11.0/configure.ac	2015-10-03 02:28:49.284502749 +0200
@@ -1066,8 +1066,6 @@ case "${GLIBC_VERSION}" in
 	;;
      2.0|2.1|*)
 	AC_MSG_RESULT([unsupported version ${GLIBC_VERSION}])
-	AC_MSG_ERROR([Valgrind requires glibc version 2.2 or later,])
-	AC_MSG_ERROR([Darwin libc, Bionic libc or Solaris libc])
 	;;
 esac
 
diff -upr valgrind-3.11.0.orig/coregrind/vg_preloaded.c valgrind-3.11.0/coregrind/vg_preloaded.c
--- valgrind-3.11.0.orig/coregrind/vg_preloaded.c	2015-10-03 02:28:18.367636023 +0200
+++ valgrind-3.11.0/coregrind/vg_preloaded.c	2015-10-03 02:28:37.745672152 +0200
@@ -56,7 +56,7 @@
 void VG_NOTIFY_ON_LOAD(freeres)( void );
 void VG_NOTIFY_ON_LOAD(freeres)( void )
 {
-#  if !defined(__UCLIBC__) \
+#  if defined(__GLIBC__) \
       && !defined(VGPV_arm_linux_android) \
       && !defined(VGPV_x86_linux_android) \
       && !defined(VGPV_mips32_linux_android) \
diff -upr valgrind-3.11.0.orig/include/pub_tool_redir.h valgrind-3.11.0/include/pub_tool_redir.h
--- valgrind-3.11.0.orig/include/pub_tool_redir.h	2015-10-03 02:28:18.304309107 +0200
+++ valgrind-3.11.0/include/pub_tool_redir.h	2015-10-03 02:28:37.745672152 +0200
@@ -242,7 +242,7 @@
 /* --- Soname of the standard C library. --- */
 
 #if defined(VGO_linux) || defined(VGO_solaris)
-#  define  VG_Z_LIBC_SONAME  libcZdsoZa              // libc.so*
+#  define  VG_Z_LIBC_SONAME  libcZdZa                // libc.*
 
 #elif defined(VGO_darwin) && (DARWIN_VERS <= DARWIN_10_6)
 #  define  VG_Z_LIBC_SONAME  libSystemZdZaZddylib    // libSystem.*.dylib
@@ -274,7 +274,7 @@
 /* --- Soname of the pthreads library. --- */
 
 #if defined(VGO_linux)
-#  define  VG_Z_LIBPTHREAD_SONAME  libpthreadZdsoZd0     // libpthread.so.0
+#  define  VG_Z_LIBPTHREAD_SONAME  libcZdZa              // libc.*
 #elif defined(VGO_darwin)
 #  define  VG_Z_LIBPTHREAD_SONAME  libSystemZdZaZddylib  // libSystem.*.dylib
 #elif defined(VGO_solaris)