aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-04-30 20:09:49 -0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-01 02:24:04 +0200
commiteb14819c14d190830df673c9a3089d82d6b7b8f7 (patch)
tree2b736efb96b69128eca43b0db577fa483f8b6906 /sysdeps
parent6eb3edeed205766925c66a127b0b7aa40a64ee62 (diff)
downloadglibc-eb14819c14d190830df673c9a3089d82d6b7b8f7.zip
glibc-eb14819c14d190830df673c9a3089d82d6b7b8f7.tar.gz
glibc-eb14819c14d190830df673c9a3089d82d6b7b8f7.tar.bz2
Define __mig_strlen to support dynamically sized strings in hurd RPCs
We make lib{mach,hurd}user.so only call __mig_strlen which can be relocated before libc.so is relocated, similar to what is done with __mig_memcpy. Message-Id: <ZE8DTRDpY2hpPZlJ@jupiter.tail36e24.ts.net>
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/include/mach/mig_support.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/mach/include/mach/mig_support.h b/sysdeps/mach/include/mach/mig_support.h
index 1888d48..242f310 100644
--- a/sysdeps/mach/include/mach/mig_support.h
+++ b/sysdeps/mach/include/mach/mig_support.h
@@ -9,10 +9,11 @@ libc_hidden_proto (__mig_init)
# include <libc-symbols.h>
# if defined USE_MULTIARCH && (IS_IN (libmachuser) || IS_IN (libhurduser))
-/* Avoid directly calling ifunc-enabled memcpy or strpcpy,
+/* Avoid directly calling ifunc-enabled memcpy or strlen,
because they would introduce a relocation loop between lib*user and
libc.so. */
# define memcpy(dest, src, n) __mig_memcpy(dest, src, n)
+# define strlen(src) __mig_strlen(src)
# endif
#endif