From owner-cvs-src@FreeBSD.ORG Mon Aug 23 19:58:48 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B5ED16A4CE; Mon, 23 Aug 2004 19:58:47 +0000 (GMT) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF6B143D46; Mon, 23 Aug 2004 19:58:47 +0000 (GMT) (envelope-from marcel@xcllnt.net) Received: from dhcp50.pn.xcllnt.net (dhcp50.pn.xcllnt.net [192.168.4.250]) by ns1.xcllnt.net (8.12.11/8.12.11) with ESMTP id i7NJwlfo012276; Mon, 23 Aug 2004 12:58:47 -0700 (PDT) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp50.pn.xcllnt.net (localhost [127.0.0.1]) by dhcp50.pn.xcllnt.net (8.13.1/8.13.1) with ESMTP id i7NJwlFn001203; Mon, 23 Aug 2004 12:58:47 -0700 (PDT) (envelope-from marcel@dhcp50.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp50.pn.xcllnt.net (8.13.1/8.13.1/Submit) id i7NJwlVl001202; Mon, 23 Aug 2004 12:58:47 -0700 (PDT) (envelope-from marcel) Date: Mon, 23 Aug 2004 12:58:47 -0700 From: Marcel Moolenaar To: Doug Rabson Message-ID: <20040823195847.GA1179@dhcp50.pn.xcllnt.net> References: <200408231530.i7NFU5bu082414@repoman.freebsd.org> <1093283234.16672.2.camel@builder02.qubesoft.com> <20040823181827.GA706@dhcp50.pn.xcllnt.net> <200408232001.22449.dfr@nlsystems.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200408232001.22449.dfr@nlsystems.com> User-Agent: Mutt/1.4.2.1i cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/gen tls.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Aug 2004 19:58:48 -0000 On Mon, Aug 23, 2004 at 08:01:22PM +0100, Doug Rabson wrote: > > > > > > This is the real fix for the static binaries segfaulting on alpha. > > > With this we could re-add the change to crt1.c which enables TLS > > > for static binaries. Given that we don't yet fully support TLS for > > > alpha in either rtld or libpthread, I don't propose to change > > > lib/csu/alpha/crt1.c again for 5.3. *snip* > Another thing which confuses me right now is that the same bug ought to > have affected ia64 and powerpc since they both would like to use > variant I style TLS. Odd. On ia64 we never call _rtld_allocate_tls(): itanium% ldd ./hello ldd: ./hello: not a dynamic executable itanium% gdb ./hello GNU gdb 6.1.1 [FreeBSD] *snip* (gdb) b _rtld_allocate_tls Breakpoint 1 at 0x20000000000004a0 (gdb) run Starting program: /nfs/home/marcel/hello Hello world! Program exited normally. (gdb) b _init_tls Breakpoint 2 at 0x2000000000000640 (gdb) run Starting program: /nfs/home/marcel/hello Breakpoint 2, 0x2000000000000640 in _init_tls () (gdb) c Continuing. Hello world! Program exited normally. (gdb) quit -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net