From patchwork Sat Mar 24 23:59:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 890594 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-91238-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="sjII7ZGY"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 407y861tmtz9s08 for ; Sun, 25 Mar 2018 11:00:05 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=eLfvTxa8EJiqcjkCv0z0Q3UOKUj5LiINsfkdqZf0iSrL55i+2VXBJ t5CxJtBTWN8PiuaCiuQNGvCnycN4vYtkHhSPiipupU3PNLgDBVO/9Gh4hZNyH2XC g9WlElseL7Y2Ws6J6mQb5kI7Mg6mYVpC5jfaH27fqF6QFUhnsSiXYg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=E+Grxlg5kSywGOWxQk8PrFtYN/E=; b=sjII7ZGYrmpBwYA97s7MMjXSFNIV HnPhEGbdBPnuGKDNprJsESIPckRaxVXhrDrW9EYvOP19h3CgW09rLEbI1+vfvm78 3VjOKntw/jET+GL+Yu/bcwsUYC7uHf2vwVrzb8sXznv2t9pYkhkL34qS3919c9Hr 9qR6PNtTcXO39RQ= Received: (qmail 77470 invoked by alias); 24 Mar 2018 23:59:59 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 77453 invoked by uid 89); 24 Mar 2018 23:59:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.2 spammy=Hx-languages-length:1799, statically, H*r:sk:static-, Hx-spam-relays-external:sk:static- X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd, commited] hurd: Fix calling __pthread_initialize_minimal in shared case Date: Sun, 25 Mar 2018 00:59:54 +0100 Message-Id: <20180324235954.28110-1-samuel.thibault@ens-lyon.org> * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal): Declare function. --- ChangeLog | 10 ++++++---- sysdeps/generic/ldsodefs.h | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index ccad77e277..6d30a34835 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,11 +8,13 @@ (ARCH_SETUP_TLS): Likewise. * sysdeps/mach/hurd/libc-start.h: New file copied from sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty. - * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS instead - of __libc_setup_tls. + * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS + instead of __libc_setup_tls. * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call - __libc_setup_tls before initializing libpthread and running _hurd_init which - starts the signal thread. + __libc_setup_tls before initializing libpthread and running _hurd_init + which starts the signal thread. + * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal): + Declare function. 2018-03-24 H.J. Lu diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h index d3013f6ec6..e29e9d7ff0 100644 --- a/sysdeps/generic/ldsodefs.h +++ b/sysdeps/generic/ldsodefs.h @@ -1067,11 +1067,11 @@ extern struct link_map * _dl_get_dl_main_map (void) # else # define _dl_relocate_static_pie() # endif +#endif /* Initialization of libpthread for statically linked applications. If libpthread is not linked in, this is an empty function. */ void __pthread_initialize_minimal (void) weak_function; -#endif /* Allocate memory for static TLS block (unless MEM is nonzero) and dtv. */ extern void *_dl_allocate_tls (void *mem);