diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-01-07 02:36:55 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-01-07 20:53:18 +0100 |
commit | a4c414796a4b7464b24f5e13f35042f3b7a2444b (patch) | |
tree | c29daddad35e678637513b35f186c7602f6ef86c | |
parent | e3ec3fbe644da1f9b7c798e820f314bcffd56067 (diff) | |
download | glibc-a4c414796a4b7464b24f5e13f35042f3b7a2444b.zip glibc-a4c414796a4b7464b24f5e13f35042f3b7a2444b.tar.gz glibc-a4c414796a4b7464b24f5e13f35042f3b7a2444b.tar.bz2 |
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.
-rw-r--r-- | include/string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/string.h b/include/string.h index 1f6aef9..b9c41b0 100644 --- a/include/string.h +++ b/include/string.h @@ -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. */ |