]> git.pld-linux.org Git - packages/valgrind.git/commitdiff
- Valgrind insisted on redirecting the 'strlen' symbol in /lib/ld-linux.so.2,
authorJacek Konieczny <jajcus@pld-linux.org>
Mon, 23 Jan 2012 11:37:49 +0000 (11:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  but it seem the symbol is not there on i686 PLD.
  valgrind-ld_linux_strlen.patch makes this redirection optional.

Changed files:
    valgrind-ld_linux_strlen.patch -> 1.1
    valgrind.spec -> 1.86

valgrind-ld_linux_strlen.patch [new file with mode: 0644]
valgrind.spec

diff --git a/valgrind-ld_linux_strlen.patch b/valgrind-ld_linux_strlen.patch
new file mode 100644 (file)
index 0000000..2ebeea2
--- /dev/null
@@ -0,0 +1,11 @@
+--- valgrind-3.7.0/coregrind/m_redir.c.orig    2012-01-23 12:29:24.000000000 +0100
++++ valgrind-3.7.0/coregrind/m_redir.c 2012-01-23 12:29:47.000000000 +0100
+@@ -1082,7 +1082,7 @@
+          (Addr)&VG_(x86_linux_REDIR_FOR_index), mandatory);
+       add_hardwired_spec(
+          "ld-linux.so.2", "strlen",
+-         (Addr)&VG_(x86_linux_REDIR_FOR_strlen), mandatory);
++         (Addr)&VG_(x86_linux_REDIR_FOR_strlen), NULL);
+    }
+ #  elif defined(VGP_amd64_linux)
index 761f413fad8573cb585e3b89f8473211dcd101ef..75e9bb3a311e9de055ca03d0f2f6b852cde468af 100644 (file)
@@ -12,6 +12,7 @@ Source0:      http://valgrind.org/downloads/%{name}-%{version}.tar.bz2
 Patch0:                %{name}-debuginfo.patch
 Patch1:                %{name}-native-cpuid.patch
 Patch2:                %{name}-automake-1.11.2.patch
 Patch0:                %{name}-debuginfo.patch
 Patch1:                %{name}-native-cpuid.patch
 Patch2:                %{name}-automake-1.11.2.patch
+Patch3:                %{name}-ld_linux_strlen.patch
 URL:           http://valgrind.org/
 BuildRequires: autoconf
 BuildRequires: automake
 URL:           http://valgrind.org/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -52,6 +53,7 @@ pracować.
 %patch0
 %patch1 -p1
 %patch2 -p0
 %patch0
 %patch1 -p1
 %patch2 -p0
+%patch3 -p1
 
 sed -i -e 's:^CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' configure.in
 
 
 sed -i -e 's:^CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' configure.in
 
This page took 0.153777 seconds and 4 git commands to generate.