From owner-freebsd-threads@FreeBSD.ORG Fri Jul 18 23:53:39 2003 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 4151137B401; Fri, 18 Jul 2003 23:53:39 -0700 (PDT) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 604FB43FDD; Fri, 18 Jul 2003 23:53:38 -0700 (PDT) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by ns1.xcllnt.net (8.12.9/8.12.9) with ESMTP id h6J6rbv1073054; Fri, 18 Jul 2003 23:53:38 -0700 (PDT) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) by dhcp01.pn.xcllnt.net (8.12.9/8.12.9) with ESMTP id h6J6rbNd046252; Fri, 18 Jul 2003 23:53:37 -0700 (PDT) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.9/8.12.9/Submit) id h6J6rbTk046251; Fri, 18 Jul 2003 23:53:37 -0700 (PDT) (envelope-from marcel) Date: Fri, 18 Jul 2003 23:53:37 -0700 From: Marcel Moolenaar To: deischen@freebsd.org Message-ID: <20030719065337.GB46175@dhcp01.pn.xcllnt.net> References: <20030719051103.GC45759@dhcp01.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i cc: threads@freebsd.org Subject: Re: Some more on 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: Sat, 19 Jul 2003 06:53:39 -0000 On Sat, Jul 19, 2003 at 01:16:15AM -0400, Daniel Eischen wrote: > On Fri, 18 Jul 2003, Marcel Moolenaar wrote: > > > On Sat, Jul 19, 2003 at 01:02:26AM -0400, Daniel Eischen wrote: > > > > > > > > A quick test with our in-tree bits revealed: > > > > > > > > o There's no compiler support for TLS on sparc64. > > > > o There's no assembler support for TLS on i386 and amd64. > > > > > > > > This means that only the toolchain on alpha and ia64 support TLS > > > > completely. > > > > > > How does Linux support TLS? > > > > What do you mean exactly? > > Sorry, I assumed that Linux somehow supports it from the > way the NVidia guys were talking and from Ulrich's paper. > Maybe they don't yet... I just wondered what toolchain > they use. RedHat 8.0 has gcc 3.2 and binutils 2.13.90.0.2. TLS works. Our gcc emits slightly different assembly that's not understood by our assembler. The assembler shipped with RH 8 also doesn't understand the assembly emitted by our compiler: static.s: Assembler messages: static.s:2: Warning: rest of line ignored; first ignored character is `%' static.s:5: Error: unrecognized symbol type "li" static.s:5: Warning: rest of line ignored; first ignored character is `,' static.s:6: Error: expected comma after name `' in .size directive static.s:6: Warning: rest of line ignored; first ignored character is `%' static.s:7: Warning: rest of line ignored; first ignored character is `%' static.s:17: Error: bad register name `%li@NTPOFF(%eax)' -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net