From 17e1347452df722eed69b8b756ae21c35933b4b5 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 15 Aug 2019 11:02:21 +0200 Subject: nptl: Remove pthread_self compatibility symbol from libpthread The symbol is no longer needed because since glibc 2.30, the dynamic loader continues searching for the symbol in libc. --- nptl/Makefile | 3 +-- nptl/Versions | 2 +- nptl/compat-pthread_self.c | 27 --------------------------- 3 files changed, 2 insertions(+), 30 deletions(-) delete mode 100644 nptl/compat-pthread_self.c (limited to 'nptl') diff --git a/nptl/Makefile b/nptl/Makefile index a643306..df47bba 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -50,8 +50,7 @@ pthread-compat-wrappers = \ libpthread-routines = nptl-init nptlfreeres vars events version pt-interp \ pthread_create pthread_exit pthread_detach \ pthread_join pthread_tryjoin pthread_timedjoin \ - pthread_join_common \ - compat-pthread_self pthread_yield \ + pthread_join_common pthread_yield \ pthread_getconcurrency pthread_setconcurrency \ pthread_getschedparam pthread_setschedparam \ pthread_setschedprio \ diff --git a/nptl/Versions b/nptl/Versions index 50d6717..3aea423 100644 --- a/nptl/Versions +++ b/nptl/Versions @@ -44,7 +44,7 @@ libc { libpthread { GLIBC_2.0 { - pthread_create; pthread_join; pthread_self; pthread_equal; + pthread_create; pthread_join; pthread_exit; pthread_detach; pthread_getschedparam; pthread_setschedparam; diff --git a/nptl/compat-pthread_self.c b/nptl/compat-pthread_self.c deleted file mode 100644 index 2ccf99d..0000000 --- a/nptl/compat-pthread_self.c +++ /dev/null @@ -1,27 +0,0 @@ -/* Compatibility version of pthread_self in libpthread. - Copyright (C) 2017-2019 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 - . */ - -/* Compatibility version of pthread_self for old binaries which link - directly against libpthread's version. */ - -#include - -#if SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_27) -# include "pthread_self.c" -compat_symbol (libpthread, pthread_self, pthread_self, GLIBC_2_0); -#endif -- cgit v1.1