local-mach_print
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sun, 19 Sep 2021 18:46:59 +0000 (19:46 +0100)
committerAurelien Jarno <aurel32@debian.org>
Sun, 19 Sep 2021 18:46:59 +0000 (19:46 +0100)
TODO: glibc 2.32 will provide it. Once it is uploaded, rebuild binaries

which might be referencing the 2.21-versioned symbol, and drop this
patch.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name local-mach_print.diff

mach/mach_init.c
sysdeps/mach/hurd/i386/libc.abilist

index afd87ed0b9a80e656d453b66cd727eeddfe2c90e..59dd5e41bbd5b13013f92a0fd4e9094a3a79e8b9 100644 (file)
@@ -18,6 +18,7 @@
 #include <mach.h>
 #include <mach/mig_support.h>
 #include <unistd.h>
+#include <shlib-compat.h>
 
 mach_port_t __mach_task_self_;
 mach_port_t __mach_host_self_;
@@ -51,3 +52,13 @@ __mach_init (void)
 #endif
 }
 weak_alias (__mach_init, mach_init)
+
+#if SHLIB_COMPAT (libc, GLIBC_2_21, GLIBC_2_32)
+extern void __mach_print(const char *s);
+void
+__mach_print_2_21 (const char *str)
+{
+       __mach_print (str);
+}
+compat_symbol (libc, __mach_print_2_21, mach_print, GLIBC_2_21);
+#endif
index 25e4a3cf2252a261f38397d696cae4f9a4a1026c..d46113104adf83eb9be3fd885327e727c49fac4a 100644 (file)
@@ -1946,6 +1946,7 @@ GLIBC_2.2.6 xprt_register F
 GLIBC_2.2.6 xprt_unregister F
 GLIBC_2.21 __mach_host_self_ D 0x4
 GLIBC_2.21 __pthread_get_cleanup_stack F
+GLIBC_2.21 mach_print F
 GLIBC_2.21 pthread_attr_destroy F
 GLIBC_2.21 pthread_attr_getdetachstate F
 GLIBC_2.21 pthread_attr_getinheritsched F