|
From: <sv...@va...> - 2015-07-07 13:01:45
|
Author: mjw
Date: Tue Jul 7 14:01:39 2015
New Revision: 15397
Log:
349828 memcpy intercepts memmove causing src/dst overlap error (ppc64 ld.so)
Modified:
trunk/NEWS
trunk/shared/vg_replace_strmem.c
Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Tue Jul 7 14:01:39 2015
@@ -249,6 +249,7 @@
reply 0x........] (task_set_special_port)
349626 Implemented additional Xen hypercalls
349874 Fix typos in source code
+349828 memcpy intercepts memmove causing src/dst overlap error (ppc64 ld.so)
n-i-bz Provide implementations of certain compiler builtins to support
compilers who may not provide those
n-i-bz Old STABS code is still being compiled, but never used. Remove it.
Modified: trunk/shared/vg_replace_strmem.c
==============================================================================
--- trunk/shared/vg_replace_strmem.c (original)
+++ trunk/shared/vg_replace_strmem.c Tue Jul 7 14:01:39 2015
@@ -1141,6 +1141,10 @@
#if defined(VGO_linux)
MEMMOVE(VG_Z_LIBC_SONAME, memmove)
MEMMOVE(VG_Z_LIBC_SONAME, __GI_memmove)
+ /* See bug #349828 Override for ld64.so.1 like memcpy, because for some
+ arches MEMCPY_OK_FOR_FORWARD_MEMMOVE is set, which might cause memmove
+ to call memcpy. */
+ MEMMOVE(VG_Z_LD64_SO_1, memmove)
#elif defined(VGO_darwin)
# if DARWIN_VERS <= DARWIN_10_6
|