diff options
author | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2014-04-29 14:15:45 -0500 |
---|---|---|
committer | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2014-04-30 08:41:42 -0500 |
commit | 1775babf2be39c3e09eb8b855379d0aca867abeb (patch) | |
tree | 1b1a06663ba859b858a8ff66cd5ff32b3a2e5df8 | |
parent | 8f630cca5c36941db1cb48726016bbed80ec1041 (diff) | |
download | glibc-1775babf2be39c3e09eb8b855379d0aca867abeb.tar glibc-1775babf2be39c3e09eb8b855379d0aca867abeb.tar.gz glibc-1775babf2be39c3e09eb8b855379d0aca867abeb.tar.bz2 glibc-1775babf2be39c3e09eb8b855379d0aca867abeb.zip |
More fixes for unsafe compiler optimization
GCC 4.9 -ftree-loop-distribute-patterns now may transform loops in
memcpy. Add the alias to internal GLIBC symbol to avoid PLT creation.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | sysdeps/generic/symbol-hacks.h | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,7 @@ +2014-04-30 Adhemerval Zanella <azanella@linux.vnet.ibm.com> + + * * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias. + 2014-04-30 Yang Yingliang <yangyingliang@huawei.com> * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast): diff --git a/sysdeps/generic/symbol-hacks.h b/sysdeps/generic/symbol-hacks.h index 9eaf014ff2..6bec24b7a0 100644 --- a/sysdeps/generic/symbol-hacks.h +++ b/sysdeps/generic/symbol-hacks.h @@ -3,4 +3,5 @@ #if !defined __ASSEMBLER__ && !defined NOT_IN_libc && defined SHARED asm ("memmove = __GI_memmove"); asm ("memset = __GI_memset"); +asm ("memcpy = __GI_memcpy"); #endif |