1/* Placeholder definitions to pull in removed symbol versions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <https://www.gnu.org/licenses/>. */
18
19#include <sys/cdefs.h>
20#include <shlib-compat.h>
21
22#ifdef SHARED
23static void
24attribute_compat_text_section
25__attribute_used__
26__libpthread_version_placeholder (void)
27{
28}
29#endif
30
31/* This is an unused compatibility symbol definition, to prevent ld
32 from creating a weak version definition for GLIBC_2.1.2. (__vfork
33 used to be defined at that version, but it is now provided by libc,
34 and there are no versions left in libpthread for that symbol
35 version.) If the ABI baseline for glibc is the GLIBC_2.2 symbol
36 version or later, the placeholder symbol is not needed because
37 there are plenty of other symbols which populate those later
38 versions. */
39#if (SHLIB_COMPAT (libpthread, GLIBC_2_1_2, GLIBC_2_2))
40compat_symbol_unique (libpthread,
41 __libpthread_version_placeholder, GLIBC_2_1_2);
42#endif
43
44#if (SHLIB_COMPAT (libpthread, GLIBC_2_2_6, GLIBC_2_3))
45compat_symbol_unique (libpthread,
46 __libpthread_version_placeholder, GLIBC_2_2_6);
47#endif
48