mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 07:20:11 +00:00
6a97b62a5b
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.
7 lines
280 B
C
7 lines
280 B
C
/* Some compiler optimizations may transform loops into memset/memmove
|
|
calls and without proper declaration it may generate PLT calls. */
|
|
#if !defined __ASSEMBLER__ && !defined NOT_IN_libc && defined SHARED
|
|
asm ("memmove = __GI_memmove");
|
|
asm ("memset = __GI_memset");
|
|
#endif
|