]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Helgrind needs to know the soname of ld.so, and on arm64-linux
authorJulian Seward <jseward@acm.org>
Sat, 30 Aug 2014 19:21:48 +0000 (19:21 +0000)
committerJulian Seward <jseward@acm.org>
Sat, 30 Aug 2014 19:21:48 +0000 (19:21 +0000)
it is different (ld-linux-aarch64.so.1) from all other targets.
(Why?)  This makes Helgrind at least somewhat usable on arm64-linux.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14396

helgrind/hg_main.c
include/pub_tool_redir.h

index de01c8994074eea2d3041ee62eaa0d779b2acbc0..274d3feb26ddff75fb3a9be9bb5cdc138afde734 100644 (file)
@@ -4477,6 +4477,7 @@ static Bool is_in_dynamic_linker_shared_object( Addr64 ga )
    if (VG_STREQ(soname, VG_U_LD64_SO_1))            return True;
    if (VG_STREQ(soname, VG_U_LD64_SO_2))            return True;
    if (VG_STREQ(soname, VG_U_LD_SO_1))              return True;
+   if (VG_STREQ(soname, VG_U_LD_LINUX_AARCH64_SO_1)) return True;
 #  elif defined(VGO_darwin)
    if (VG_STREQ(soname, VG_U_DYLD)) return True;
 #  else
index 62732c1b97dce6bf4887716d70f3d5231612a368..b99ef2c584f867af3957d8fd79623275f21a8a13 100644 (file)
 #define  VG_Z_LD_SO_1               ldZdsoZd1                  // ld.so.1
 #define  VG_U_LD_SO_1               "ld.so.1"
 
+#define  VG_U_LD_LINUX_AARCH64_SO_1 "ld-linux-aarch64.so.1"
+
 #endif
 
 /* --- Executable name for Darwin Mach-O linker. --- */