about summary refs log tree commit diff
path: root/nptl/pthread_attr_getstack.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:11 +0200
commitfb7abc3441d7cb1970ae51cf546315ee43e3fb74 (patch)
treeaebdf636531126ffef86833fc64df79889849a91 /nptl/pthread_attr_getstack.c
parentb5668f08ea2d6fa9dbb5046e2aee341d33d7cf13 (diff)
downloadglibc-fb7abc3441d7cb1970ae51cf546315ee43e3fb74.tar.gz
glibc-fb7abc3441d7cb1970ae51cf546315ee43e3fb74.tar.xz
glibc-fb7abc3441d7cb1970ae51cf546315ee43e3fb74.zip
nptl: Move pthread_attr_getstack 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_getstack.c')
-rw-r--r--nptl/pthread_attr_getstack.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/nptl/pthread_attr_getstack.c b/nptl/pthread_attr_getstack.c
index 570115af10..351aa4da80 100644
--- a/nptl/pthread_attr_getstack.c
+++ b/nptl/pthread_attr_getstack.c
@@ -17,7 +17,7 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include "pthreadP.h"
-
+#include <shlib-compat.h>
 
 int
 __pthread_attr_getstack (const pthread_attr_t *attr, void **stackaddr,
@@ -37,4 +37,9 @@ __pthread_attr_getstack (const pthread_attr_t *attr, void **stackaddr,
 
   return 0;
 }
-strong_alias (__pthread_attr_getstack, pthread_attr_getstack)
+versioned_symbol (libpthread, __pthread_attr_getstack,
+                  pthread_attr_getstack, GLIBC_2_34);
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_attr_getstack,
+               pthread_attr_getstack, GLIBC_2_2);
+#endif