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.
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.
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.
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/>. */
19 #include <sys/cdefs.h>
20 #include <shlib-compat.h>
24 attribute_compat_text_section
26 __libpthread_version_placeholder (void)
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
39 #if (SHLIB_COMPAT (libpthread, GLIBC_2_1_2, GLIBC_2_2))
40 compat_symbol_unique (libpthread
,
41 __libpthread_version_placeholder
, GLIBC_2_1_2
);
44 #if (SHLIB_COMPAT (libpthread, GLIBC_2_2_3, GLIBC_2_2_4))
45 compat_symbol_unique (libpthread
,
46 __libpthread_version_placeholder
, GLIBC_2_2_3
);
49 #if (SHLIB_COMPAT (libpthread, GLIBC_2_2_6, GLIBC_2_3))
50 compat_symbol_unique (libpthread
,
51 __libpthread_version_placeholder
, GLIBC_2_2_6
);