From 1775babf2be39c3e09eb8b855379d0aca867abeb Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Tue, 29 Apr 2014 14:15:45 -0500 Subject: [PATCH] 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. --- ChangeLog | 4 ++++ sysdeps/generic/symbol-hacks.h | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6bacb5c..054072f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-04-30 Adhemerval Zanella + + * * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias. + 2014-04-30 Yang Yingliang * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast): diff --git a/sysdeps/generic/symbol-hacks.h b/sysdeps/generic/symbol-hacks.h index 9eaf014..6bec24b 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 -- 2.7.4