|
From: <sv...@va...> - 2014-04-24 23:47:23
|
Author: sewardj
Date: Thu Apr 24 23:47:16 2014
New Revision: 13909
Log:
For the ld.so redirections for arm32-linux, allow the soname
ld-linux-armhf.so.3 in addition to the existing name, ld-linux.so.3.
Modified:
trunk/coregrind/m_redir.c
Modified: trunk/coregrind/m_redir.c
==============================================================================
--- trunk/coregrind/m_redir.c (original)
+++ trunk/coregrind/m_redir.c Thu Apr 24 23:47:16 2014
@@ -1299,24 +1299,33 @@
}
# elif defined(VGP_arm_linux)
- /* If we're using memcheck, use these intercepts right from
- the start, otherwise ld.so makes a lot of noise. */
+ /* If we're using memcheck, use these intercepts right from the
+ start, otherwise ld.so makes a lot of noise. In most ARM-linux
+ distros, ld.so's soname is ld-linux.so.3, but Ubuntu 14.04 on
+ Odroid uses ld-linux-armhf.so.3 for some reason. */
if (0==VG_(strcmp)("Memcheck", VG_(details).name)) {
+ /* strlen */
add_hardwired_spec(
"ld-linux.so.3", "strlen",
(Addr)&VG_(arm_linux_REDIR_FOR_strlen),
complain_about_stripped_glibc_ldso
);
- //add_hardwired_spec(
- // "ld-linux.so.3", "index",
- // (Addr)&VG_(arm_linux_REDIR_FOR_index),
- // NULL
- //);
+ add_hardwired_spec(
+ "ld-linux-armhf.so.3", "strlen",
+ (Addr)&VG_(arm_linux_REDIR_FOR_strlen),
+ complain_about_stripped_glibc_ldso
+ );
+ /* memcpy */
add_hardwired_spec(
"ld-linux.so.3", "memcpy",
(Addr)&VG_(arm_linux_REDIR_FOR_memcpy),
complain_about_stripped_glibc_ldso
);
+ add_hardwired_spec(
+ "ld-linux-armhf.so.3", "memcpy",
+ (Addr)&VG_(arm_linux_REDIR_FOR_memcpy),
+ complain_about_stripped_glibc_ldso
+ );
}
# elif defined(VGP_arm64_linux)
|