mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
include/string.h: Also redirect calls if not inlined in libpthread
htl's pt-alloc.c calls __mempcpy, which is #defined to __builtin_mempcpy, but which does not happen to get inlined (the size is dynamic), and then gcc emits a reference to mempcpy, thus violating symbol exposition standard. We thus also have to redirect such references to __mempcpy too.
This commit is contained in:
@@ -175,7 +175,7 @@ extern __typeof (strnlen) strnlen attribute_hidden;
|
||||
extern __typeof (strsep) strsep attribute_hidden;
|
||||
#endif
|
||||
|
||||
#if IS_IN (libc) && !defined SHARED \
|
||||
#if (IS_IN (libc) || IS_IN (libpthread)) && !defined SHARED \
|
||||
&& !defined NO_MEMPCPY_STPCPY_REDIRECT
|
||||
/* Redirect calls to __builtin_mempcpy and __builtin_stpcpy to call
|
||||
__mempcpy and __stpcpy if not inlined. */
|
||||
|
||||
Reference in New Issue
Block a user