about summary refs log tree commit diff
path: root/nptl/pthread_attr_setstackaddr.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-05-11 19:32:43 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-05-11 19:33:19 +0200
commit736c57c96cd1fd79905cf0f224ca6e3864eb71b4 (patch)
treee759014c90e2f32bc1be855a45bc282b731fd6ca /nptl/pthread_attr_setstackaddr.c
parentb855e52bae0f754150fbad78c76d363b6eb2e53c (diff)
downloadglibc-736c57c96cd1fd79905cf0f224ca6e3864eb71b4.tar.gz
glibc-736c57c96cd1fd79905cf0f224ca6e3864eb71b4.tar.xz
glibc-736c57c96cd1fd79905cf0f224ca6e3864eb71b4.zip
nptl: Move pthread_attr_setstackaddr into libc
The symbol was moved using scripts/move-symbol-to-libc.py.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/pthread_attr_setstackaddr.c')
-rw-r--r--nptl/pthread_attr_setstackaddr.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/nptl/pthread_attr_setstackaddr.c b/nptl/pthread_attr_setstackaddr.c
index 08633b551d..328339e364 100644
--- a/nptl/pthread_attr_setstackaddr.c
+++ b/nptl/pthread_attr_setstackaddr.c
@@ -18,7 +18,7 @@
 
 #include <errno.h>
 #include "pthreadP.h"
-
+#include <shlib-compat.h>
 
 int
 __pthread_attr_setstackaddr (pthread_attr_t *attr, void *stackaddr)
@@ -36,7 +36,12 @@ __pthread_attr_setstackaddr (pthread_attr_t *attr, void *stackaddr)
 
   return 0;
 }
-strong_alias (__pthread_attr_setstackaddr, pthread_attr_setstackaddr)
+versioned_symbol (libc, __pthread_attr_setstackaddr,
+                  pthread_attr_setstackaddr, GLIBC_2_34);
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_attr_setstackaddr,
+               pthread_attr_setstackaddr, GLIBC_2_1);
+#endif
 
 link_warning (pthread_attr_setstackaddr,
               "the use of `pthread_attr_setstackaddr' is deprecated, use `pthread_attr_setstack'")