aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2014-08-30 19:21:48 +0000
committersewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2014-08-30 19:21:48 +0000
commitdcd90513c0ed2c19fe54fea546962e096ffcba19 (patch)
tree7ca2f8ea773db1aebd5fe919562dc7ecc0ade498
parentba473c52d9a23094adf5343f0749426864b64256 (diff)
downloadvalgrind-dcd90513c0ed2c19fe54fea546962e096ffcba19.tar.gz
Helgrind needs to know the soname of ld.so, and on arm64-linux
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 a5019735-40e9-0310-863c-91ae7b9d1cf9
-rw-r--r--helgrind/hg_main.c1
-rw-r--r--include/pub_tool_redir.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/helgrind/hg_main.c b/helgrind/hg_main.c
index de01c8994..274d3feb2 100644
--- a/helgrind/hg_main.c
+++ b/helgrind/hg_main.c
@@ -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
diff --git a/include/pub_tool_redir.h b/include/pub_tool_redir.h
index 62732c1b9..b99ef2c58 100644
--- a/include/pub_tool_redir.h
+++ b/include/pub_tool_redir.h
@@ -301,6 +301,8 @@
#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. --- */