aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/powerpc/libpthread-compat.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:20 +0200
commit870218fb30a83c071b53b036d1eb33df7e30397e (patch)
tree41fd5c55d08374dd044b248a8b394fb7a5d97369 /sysdeps/unix/sysv/linux/powerpc/libpthread-compat.c
parent736c57c96cd1fd79905cf0f224ca6e3864eb71b4 (diff)
downloadglibc-870218fb30a83c071b53b036d1eb33df7e30397e.zip
glibc-870218fb30a83c071b53b036d1eb33df7e30397e.tar.gz
glibc-870218fb30a83c071b53b036d1eb33df7e30397e.tar.bz2
nptl: Move pthread_attr_setstacksize into libc
The symbol was moved using scripts/move-symbol-to-libc.py. It is necessary to arrange for a __libpthread_version_placeholder@GLIBC_2.6 on some of the powerpc targets. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/sysv/linux/powerpc/libpthread-compat.c')
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/libpthread-compat.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/libpthread-compat.c b/sysdeps/unix/sysv/linux/powerpc/libpthread-compat.c
new file mode 100644
index 0000000..ea5482c
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/powerpc/libpthread-compat.c
@@ -0,0 +1,24 @@
+/* Placeholder definitions for removed symbol versions. powerpc version.
+ Copyright (C) 2021 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <https://www.gnu.org/licenses/>. */
+
+#include <nptl/libpthread-compat.c>
+
+#if SHLIB_COMPAT (libpthread, GLIBC_2_6, GLIBC_2_7)
+compat_symbol (libpthread, __libpthread_version_placeholder_1,
+ __libpthread_version_placeholder, GLIBC_2_6);
+#endif