5de29b
From a060ed545478f28bded88544e9361c49cf442427 Mon Sep 17 00:00:00 2001
5de29b
From: Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
5de29b
Date: Wed, 30 Jul 2014 08:19:53 -0500
5de29b
Subject: [PATCH] More fixes for unsafe compiler optimization
5de29b
5de29b
commit 1775babf2be39c3e09eb8b855379d0aca867abeb
5de29b
Author: Adhemerval Zanella <azanella@linux.vnet.ibm.com>
5de29b
Date:   Tue Apr 29 14:15:45 2014 -0500
5de29b
5de29b
GCC 4.9 -ftree-loop-distribute-patterns now may transform loops in
5de29b
memcpy.  Add the alias to internal GLIBC symbol to avoid PLT creation.
5de29b
---
5de29b
 sysdeps/generic/symbol-hacks.h | 1 +
5de29b
 1 file changed, 1 insertion(+)
5de29b
12745e
diff --git glibc-2.17-c758a686/sysdeps/generic/symbol-hacks.h glibc-2.17-c758a686/sysdeps/generic/symbol-hacks.h
5de29b
index 9eaf014..6bec24b 100644
12745e
--- glibc-2.17-c758a686/sysdeps/generic/symbol-hacks.h
12745e
+++ glibc-2.17-c758a686/sysdeps/generic/symbol-hacks.h
5de29b
@@ -3,4 +3,5 @@
5de29b
 #if !defined __ASSEMBLER__ && !defined NOT_IN_libc && defined SHARED
5de29b
 asm ("memmove = __GI_memmove");
5de29b
 asm ("memset = __GI_memset");
5de29b
+asm ("memcpy = __GI_memcpy");
5de29b
 #endif
5de29b
-- 
5de29b
1.8.3.1
5de29b