From owner-freebsd-threads@FreeBSD.ORG Thu Mar 22 18:24:54 2007 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1D0F216A406 for ; Thu, 22 Mar 2007 18:24:54 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by mx1.freebsd.org (Postfix) with ESMTP id B97CF13C4C8 for ; Thu, 22 Mar 2007 18:24:53 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so832102wxc for ; Thu, 22 Mar 2007 11:24:53 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fLNCHimhHBkBMgUB5OdJVXFIrITQJSGYWwD+VSfop8vWDj6Zp9P/G5OXApIMO/+muQz3q169KovuiVG42zILL+BXunaIck1jvJqKxa+shf/vSnAujUW4or7GrhbA1Bg8vyVxegS1Ux4eahCl7GzqpdC/kD3wSkbbdEQU/X0CBvo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JtFxRjv313aC0MswSe3iuFlpFkL3oqy1hJK7DFMpQzK0YELionu+NQ2E6pkKcVewyoZcNcdx2xAdlNztZE8Rd8GBvWxlFFKm6g4y6P5OP0cMesMahvqu7qd/ixkiAu9feZkexDRJxe13TTMyDrvY/UlOiYPTo0RIbDwdwbUIsXc= Received: by 10.90.84.17 with SMTP id h17mr4013710agb.1174587892652; Thu, 22 Mar 2007 11:24:52 -0700 (PDT) Received: by 10.90.116.6 with HTTP; Thu, 22 Mar 2007 11:24:52 -0700 (PDT) Message-ID: Date: Thu, 22 Mar 2007 11:24:52 -0700 From: "Kip Macy" To: "Daniel Eischen" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2779e6080703220210u321522c7l40cf8555cfdc2404@mail.gmail.com> <4602B28C.1020204@elischer.org> <4602C49D.3080109@frebsd.org> Cc: Jason Evans , freebsd-threads@freebsd.org Subject: Re: lipthread and TLS X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Mar 2007 18:24:54 -0000 On 3/22/07, Daniel Eischen wrote: > On Thu, 22 Mar 2007, Jason Evans wrote: > > > Daniel Eischen wrote: > >> The toolchain itself should support TLS, so that's probably > >> the place to look, as well as src/libexec/rtld-elf/. The > >> libpthread library does not use TLS itself, and I don't > >> think anything (yet) uses TLS in libc or in our base system, > >> though I could be wrong. > > > > malloc uses TLS. > > Well, I stand corrected then. If you need to get MIPS up > and running without TLS, you may need to hack malloc() > and anything else that uses TLS to temporarily use > pthread_[gs]etspecific()... You won't be able to use TLS unless: a) initialization works in libc - it was broken on sparc64 until recently for both static and dynamic linking b) your linker supports it - the current binutils is very much out of date, users needing it will have to build a private toolchain