From owner-freebsd-threads@FreeBSD.ORG Fri Aug 6 13:15:28 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 581DF16A4CE; Fri, 6 Aug 2004 13:15:28 +0000 (GMT) Received: from mail.qubesoft.com (gate.qubesoft.com [217.169.36.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD62B43D58; Fri, 6 Aug 2004 13:15:27 +0000 (GMT) (envelope-from dfr@nlsystems.com) Received: from bluebottle.qubesoft.com (bluebottle.qubesoft.com [192.168.1.2]) by mail.qubesoft.com (8.12.9/8.12.9) with ESMTP id i76DFQGR033416; Fri, 6 Aug 2004 14:15:26 +0100 (BST) (envelope-from dfr@nlsystems.com) Received: from builder02.qubesoft.com (builder02.qubesoft.com [192.168.1.8]) i76DFQON067219; Fri, 6 Aug 2004 14:15:26 +0100 (BST) (envelope-from dfr@nlsystems.com) From: Doug Rabson To: David Xu In-Reply-To: <4113818E.5010601@freebsd.org> References: <1091796228.4367.5.camel@builder02.qubesoft.com> <4113818E.5010601@freebsd.org> Content-Type: text/plain Message-Id: <1091798125.4367.8.camel@builder02.qubesoft.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 06 Aug 2004 14:15:26 +0100 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 'clamd / ClamAV version 0.65', clamav-milter version '0.60p' cc: freebsd-threads@freebsd.org Subject: Re: Pthread patches for TLS X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2004 13:15:28 -0000 On Fri, 2004-08-06 at 14:03, David Xu wrote: > Doug Rabson wrote: > > >> http://docs.freebsd.org/mail/archive/2003/freebsd-arch/20030330.freebsd-arch.html > >> > >>Look for "Not providing static libraries", Mar 26, 2003, freebsd-arch > >> > >>Note that Solaris doesn't have static thread libraries. I'm not sure about > >>Linux... > >> > >> > > > >I thought I was in luck when I noticed the AT_PHDR entry but > >unfortunately its NULL in static programs. I reckon I can fix that in > >the kernel since the phdrs are definately inside the first load segment. > > > > > > > I hope the current tls structure will be kept both in rtld and libpthread, > I have already done tls debugger support locally this afternoon. > Static support won't affect how libpthread works at all. All that will happen is that the stub _rtld_allocate_tls() in libc will provide the TLS support for static binaries.