mirror of
https://sourceware.org/git/glibc.git
synced 2025-11-26 00:03:11 +03:00
clang generates internal calls for some _chk symbol, so add internal aliases for them, and stub some with rtld-stubbed-symbols to avoid ld.so linker issues. Reviewed-by: Sam James <sam@gentoo.org>
17 lines
498 B
C
17 lines
498 B
C
#ifndef _ISOMAC
|
|
# if IS_IN(libc) && defined SHARED
|
|
/* Redirect calls from __builtin_stpcpy_chk to internal __stpcpy when building
|
|
with fortify enable. */
|
|
__asm__ ("stpcpy = __GI___stpcpy");
|
|
# endif
|
|
|
|
/* Add the internal aliass attribute to symbol before they first usage on the
|
|
fortify wrappers. */
|
|
libc_hidden_builtin_proto (memcpy)
|
|
libc_hidden_builtin_proto (mempcpy)
|
|
libc_hidden_builtin_proto (memmove)
|
|
libc_hidden_builtin_proto (memset)
|
|
#endif
|
|
|
|
#include <string/bits/string_fortified.h>
|