From owner-cvs-src@FreeBSD.ORG Tue Aug 24 07:34:23 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 2CAFD16A4CE; Tue, 24 Aug 2004 07:34:23 +0000 (GMT) Received: from itchy.rabson.org (mailgate.nlsystems.com [80.177.232.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 219F543D2D; Tue, 24 Aug 2004 07:34:22 +0000 (GMT) (envelope-from dfr@nlsystems.com) Received: from ns0.nlsystems.com (ns0.nlsystems.com [80.177.232.243]) by itchy.rabson.org (8.12.11/8.12.11) with ESMTP id i7O7YG8n059220; Tue, 24 Aug 2004 08:34:16 +0100 (BST) (envelope-from dfr@nlsystems.com) From: Doug Rabson To: Marcel Moolenaar Date: Tue, 24 Aug 2004 08:34:34 +0100 User-Agent: KMail/1.6.2 References: <200408231530.i7NFU5bu082414@repoman.freebsd.org> <200408232001.22449.dfr@nlsystems.com> <20040823195847.GA1179@dhcp50.pn.xcllnt.net> In-Reply-To: <20040823195847.GA1179@dhcp50.pn.xcllnt.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408240834.34656.dfr@nlsystems.com> X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on itchy.rabson.org X-Virus-Scanned: clamd / ClamAV version 0.75.1, clamav-milter version 0.75c on itchy.rabson.org X-Virus-Status: Clean 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: Tue, 24 Aug 2004 07:34:23 -0000 On Monday 23 August 2004 20:58, Marcel Moolenaar wrote: > 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 Interesting - do you have the previous change to gen/tls.c - the one which unbreaks static pthread-using binaries which don't have TLS sections?