Blame nptl/libpthread-compat.c

Packit Bot ff5a43
/* Placeholder definitions to pull in removed symbol versions.
Packit Bot ff5a43
   Copyright (C) 2019 Free Software Foundation, Inc.
Packit Bot ff5a43
   This file is part of the GNU C Library.
Packit Bot ff5a43
Packit Bot ff5a43
   The GNU C Library is free software; you can redistribute it and/or
Packit Bot ff5a43
   modify it under the terms of the GNU Lesser General Public
Packit Bot ff5a43
   License as published by the Free Software Foundation; either
Packit Bot ff5a43
   version 2.1 of the License, or (at your option) any later version.
Packit Bot ff5a43
Packit Bot ff5a43
   The GNU C Library is distributed in the hope that it will be useful,
Packit Bot ff5a43
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Bot ff5a43
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Bot ff5a43
   Lesser General Public License for more details.
Packit Bot ff5a43
Packit Bot ff5a43
   You should have received a copy of the GNU Lesser General Public
Packit Bot ff5a43
   License along with the GNU C Library; if not, see
Packit Bot ff5a43
   <http://www.gnu.org/licenses/>.  */
Packit Bot ff5a43
Packit Bot ff5a43
#include <shlib-compat.h>
Packit Bot ff5a43
Packit Bot ff5a43
/* This is an unused compatibility symbol definition, to prevent ld
Packit Bot ff5a43
   from creating a weak version definition for GLIBC_2.1.2.  (__vfork
Packit Bot ff5a43
   used to be defined at that version, but it is now provided by libc,
Packit Bot ff5a43
   and there are no versions left in libpthread for that symbol
Packit Bot ff5a43
   version.)  If the ABI baseline for glibc is the GLIBC_2.2 symbol
Packit Bot ff5a43
   version or later, the placeholder symbol is not needed because
Packit Bot ff5a43
   there are plenty of other symbols which populate those later
Packit Bot ff5a43
   versions.  */
Packit Bot ff5a43
#if (SHLIB_COMPAT (libpthread, GLIBC_2_1_2, GLIBC_2_2))
Packit Bot ff5a43
void
Packit Bot ff5a43
attribute_compat_text_section
Packit Bot ff5a43
__libpthread_version_placeholder (void)
Packit Bot ff5a43
{
Packit Bot ff5a43
}
Packit Bot ff5a43
compat_symbol (libpthread, __libpthread_version_placeholder,
Packit Bot ff5a43
               __libpthread_version_placeholder, GLIBC_2_1_2);
Packit Bot ff5a43
#endif