Fix unsafe compiler optimization
commit7dfe8a35215a019f552f117d907eca294225c121
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Wed, 12 Jun 2013 15:21:22 +0000 (12 10:21 -0500)
committerRyan S. Arnold <rsa@linux.vnet.ibm.com>
Fri, 26 Jul 2013 14:30:36 +0000 (26 09:30 -0500)
treec4a814d67fa81eeda93b2402d7957c38d87e4485
parente0c595c971d958da58533a2b9b59f46a71a1e4cf
Fix unsafe compiler optimization

GCC 4.8 enables -ftree-loop-distribute-patterns at -O3 by default and
this optimization may transform loops into memset/memmove calls. Without
proper handling this may generate unexpected PLT calls on GLIBC.
This patch fixes by create memset/memmove alias to internal GLIBC
__GI_memset/__GI_memmove symbols.
(cherry picked from commit 6a97b62a5b4f18aea849d6f4d8de58d1469d2521)
ChangeLog
sysdeps/generic/symbol-hacks.h
sysdeps/wordsize-32/symbol-hacks.h