about summary refs log tree commit diff
path: root/sysdeps/generic/symbol-hacks.h
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-04-29 14:15:45 -0500
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-04-30 08:41:42 -0500
commit1775babf2be39c3e09eb8b855379d0aca867abeb (patch)
tree1b1a06663ba859b858a8ff66cd5ff32b3a2e5df8 /sysdeps/generic/symbol-hacks.h
parent8f630cca5c36941db1cb48726016bbed80ec1041 (diff)
downloadglibc-1775babf2be39c3e09eb8b855379d0aca867abeb.tar.gz
glibc-1775babf2be39c3e09eb8b855379d0aca867abeb.tar.xz
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.
Diffstat (limited to 'sysdeps/generic/symbol-hacks.h')
-rw-r--r--sysdeps/generic/symbol-hacks.h1
1 files changed, 1 insertions, 0 deletions
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