From owner-freebsd-threads@FreeBSD.ORG Fri Aug 6 12:43:52 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 94B4216A4CE; Fri, 6 Aug 2004 12:43:52 +0000 (GMT) Received: from mail.qubesoft.com (gate.qubesoft.com [217.169.36.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id C60C843D2F; Fri, 6 Aug 2004 12:43:51 +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 i76ChnGR032399; Fri, 6 Aug 2004 13:43:50 +0100 (BST) (envelope-from dfr@nlsystems.com) Received: from builder02.qubesoft.com (builder02.qubesoft.com [192.168.1.8]) i76ChmON066742; Fri, 6 Aug 2004 13:43:49 +0100 (BST) (envelope-from dfr@nlsystems.com) From: Doug Rabson To: Daniel Eischen In-Reply-To: References: Content-Type: text/plain Message-Id: <1091796228.4367.5.camel@builder02.qubesoft.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 06 Aug 2004 13:43:48 +0100 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 'clamd / ClamAV version 0.65', clamav-milter version '0.60p' cc: David Xu 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 12:43:52 -0000 On Thu, 2004-08-05 at 16:19, Daniel Eischen wrote: > On Thu, 5 Aug 2004, Daniel Eischen wrote: > > > On Thu, 5 Aug 2004, Doug Rabson wrote: > > > > > I haven't tried to support static linked TLS at all. The plan is to get > > > the kernel to size the TLS segment and add extra AUXARGs to report its > > > size, initialiser location and alignment. The stubs in libc/gen/tls.c > > > would be extended to provide support for allocating the TLS blocks in > > > the static case. > > > > > > I was under the impression that no-one particularly wanted to support > > > pthreads in statically linked binaries? > > > > The thread guys don't want to support static thread libraries ;-) > > But I proposed this a few months ago (year?) in -current and there > > was some reluctance. Imp was one that was against it (from what I > > can remember). The reason given was speed of static binaries is > > faster than dynamic. I didn't force the issue any more than that. > > That's how I recall it anyways. I'll have to search the list > > archives to see if I can find the thread. > > Found it. > > 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.