From: Julian Seward Date: Wed, 20 Apr 2005 14:32:32 +0000 (+0000) Subject: Add another redirect that we need. This has no effect at present X-Git-Tag: svn/VALGRIND_3_0_0~784 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=82378116c1d9fa828d7260ce58d357f4e48cccfc;p=thirdparty%2Fvalgrind.git Add another redirect that we need. This has no effect at present because the redirect syms are set up only after the initial read of /proc/self/maps and by then ld-linux.so.2 is already aboard. Fixing this properly requires fixing the address space management stuff properly. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3534 --- diff --git a/coregrind/vg_redir.c b/coregrind/vg_redir.c index a76760d01e..0e7f1b3859 100644 --- a/coregrind/vg_redir.c +++ b/coregrind/vg_redir.c @@ -426,6 +426,8 @@ void VG_(setup_code_redirect_table) ( void ) add_redirect_sym_to_sym("soname:libc.so.6", "stpcpy", "*vgpreload_memcheck.so*", "stpcpy"); + add_redirect_sym_to_sym("soname:ld-linux.so.2", "strlen", + "*vgpreload_memcheck.so*", "strlen"); add_redirect_sym_to_sym("soname:libc.so.6", "strlen", "*vgpreload_memcheck.so*", "strlen");