about summary refs log tree commit diff
path: root/include/libc-symbols.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-05-15 22:04:31 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-05-20 20:29:56 +0200
commite3022f4bcd69eb9f103a6de626a1e9e343fc7ada (patch)
tree50dd17cade35e617e5c1e044fe54ba3d9c0b2fff /include/libc-symbols.h
parent7bf1094e8253e19753ae467ab5b86a18d9abd9f3 (diff)
downloadglibc-e3022f4bcd69eb9f103a6de626a1e9e343fc7ada.tar.gz
glibc-e3022f4bcd69eb9f103a6de626a1e9e343fc7ada.tar.xz
glibc-e3022f4bcd69eb9f103a6de626a1e9e343fc7ada.zip
<libc-symbols.h>: Add libpthread hidden alias support
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'include/libc-symbols.h')
-rw-r--r--include/libc-symbols.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index 3555cb6f3d..b2f36bc44b 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -737,6 +737,29 @@ for linking")
 # define libresolv_hidden_data_ver(local, name)
 #endif
 
+#if IS_IN (libpthread)
+# define libpthread_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
+# define libpthread_hidden_tls_proto(name, attrs...) \
+  hidden_tls_proto (name, ##attrs)
+# define libpthread_hidden_def(name) hidden_def (name)
+# define libpthread_hidden_weak(name) hidden_weak (name)
+# define libpthread_hidden_ver(local, name) hidden_ver (local, name)
+# define libpthread_hidden_data_def(name) hidden_data_def (name)
+# define libpthread_hidden_tls_def(name) hidden_tls_def (name)
+# define libpthread_hidden_data_weak(name) hidden_data_weak (name)
+# define libpthread_hidden_data_ver(local, name) hidden_data_ver (local, name)
+#else
+# define libpthread_hidden_proto(name, attrs...)
+# define libpthread_hidden_tls_proto(name, attrs...)
+# define libpthread_hidden_def(name)
+# define libpthread_hidden_weak(name)
+# define libpthread_hidden_ver(local, name)
+# define libpthread_hidden_data_def(name)
+# define libpthread_hidden_tls_def(name)
+# define libpthread_hidden_data_weak(name)
+# define libpthread_hidden_data_ver(local, name)
+#endif
+
 #if IS_IN (librt)
 # define librt_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
 # define librt_hidden_tls_proto(name, attrs...) \