Blame nptl/libpthread-compat.c

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