summaryrefslogtreecommitdiff
path: root/package/valgrind/valgrind.sh
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-08-08 11:48:35 +0000
committerEric Andersen <andersen@codepoet.org>2005-08-08 11:48:35 +0000
commitb904ce177803224ea39b709d1236bc61123e669e (patch)
tree2521ac7d2fb032678a3543e600621226523185f4 /package/valgrind/valgrind.sh
parent8ce4796efafab6a4f3ccce6ff8c84862625eee90 (diff)
Rather than adjusting the way ldso allocates memory, for the
time being simply add a series of suppressions to make valgrind ignore all memory mmaped by uClibc's ldso.
Diffstat (limited to 'package/valgrind/valgrind.sh')
-rwxr-xr-xpackage/valgrind/valgrind.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/valgrind/valgrind.sh b/package/valgrind/valgrind.sh
new file mode 100755
index 000000000..4b8eb2e57
--- /dev/null
+++ b/package/valgrind/valgrind.sh
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+#
+# Valgrind wrapper
+
+# Use special suppression file for uClibc
+export VALGRIND_OPTS="$VALGRIND_OPTS --suppressions=/usr/lib/valgrind/uclibc.supp"
+
+# Use 'exec' to avoid having another shell process hanging around.
+exec $0.bin "$@"
+