From patchwork Thu Dec 3 11:30:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 1410338 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Cmttb0hLQz9sWB for ; Thu, 3 Dec 2020 22:30:31 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5F4773971802; Thu, 3 Dec 2020 11:30:28 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from hera.aquilenet.fr (hera.aquilenet.fr [IPv6:2a0c:e300::1]) by sourceware.org (Postfix) with ESMTPS id 773B53971803 for ; Thu, 3 Dec 2020 11:30:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 773B53971803 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=samuel.thibault@ens-lyon.org Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 5106D12AB; Thu, 3 Dec 2020 12:30:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id liGo33Lup35T; Thu, 3 Dec 2020 12:30:23 +0100 (CET) Received: from function.youpi.perso.aquilenet.fr (unknown [IPv6:2a01:cb19:956:1b00:9eb6:d0ff:fe88:c3c7]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 0BD3012A8; Thu, 3 Dec 2020 12:30:22 +0100 (CET) Received: from samy by function.youpi.perso.aquilenet.fr with local (Exim 4.94) (envelope-from ) id 1kkmoX-007zNw-P3; Thu, 03 Dec 2020 12:30:21 +0100 From: Samuel Thibault To: libc-alpha@sourceware.org Subject: [hurd,commited] htl: Add hidden def for __pthread_create/detach Date: Thu, 3 Dec 2020 12:30:21 +0100 Message-Id: <20201203113021.1904217-1-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_NEUTRAL, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: commit-hurd@gnu.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" to avoid a PLT. --- htl/pt-create.c | 1 + htl/pt-detach.c | 1 + sysdeps/htl/pthreadP.h | 2 ++ 3 files changed, 4 insertions(+) diff --git a/htl/pt-create.c b/htl/pt-create.c index 9364c40453..fc2f8d4ad0 100644 --- a/htl/pt-create.c +++ b/htl/pt-create.c @@ -97,6 +97,7 @@ __pthread_create (pthread_t * thread, const pthread_attr_t * attr, return err; } weak_alias (__pthread_create, pthread_create) +hidden_def (__pthread_create) /* Internal version of pthread_create. See comment in pt-internal.h. */ diff --git a/htl/pt-detach.c b/htl/pt-detach.c index 175560667a..e842a3d3d7 100644 --- a/htl/pt-detach.c +++ b/htl/pt-detach.c @@ -78,3 +78,4 @@ __pthread_detach (pthread_t thread) return err; } weak_alias (__pthread_detach, pthread_detach) +hidden_def (__pthread_detach) diff --git a/sysdeps/htl/pthreadP.h b/sysdeps/htl/pthreadP.h index 0eb969ea1a..bf00f7d2f0 100644 --- a/sysdeps/htl/pthreadP.h +++ b/sysdeps/htl/pthreadP.h @@ -97,6 +97,8 @@ int __pthread_attr_getstack (const pthread_attr_t *, void **, size_t *); void __pthread_testcancel (void); #if IS_IN (libpthread) +hidden_proto (__pthread_create) +hidden_proto (__pthread_detach) hidden_proto (__pthread_key_create) hidden_proto (__pthread_getspecific) hidden_proto (__pthread_setspecific)