From owner-freebsd-hackers Tue Dec 5 23:18:33 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA18879 for hackers-outgoing; Tue, 5 Dec 1995 23:18:33 -0800 (PST) Received: from ref.tfs.com (ref.tfs.com [140.145.254.251]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id XAA18874 for ; Tue, 5 Dec 1995 23:18:31 -0800 (PST) Received: (from julian@localhost) by ref.tfs.com (8.6.12/8.6.9) id XAA10573 for hackers@freebsd.org; Tue, 5 Dec 1995 23:18:26 -0800 From: Julian Elischer Message-Id: <199512060718.XAA10573@ref.tfs.com> Subject: _thread_init stub in libc (fwd) RFC To: hackers@freebsd.org Date: Tue, 5 Dec 1995 23:18:26 -0800 (PST) X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@freebsd.org Precedence: bulk Ok, this has come up for the thread support.. what is the consensus? is this right? julian Forwarded message: > From cimaxp1!jb@werple.net.au Tue Dec 5 20:12:17 1995 > Message-Id: <199512060403.PAA29123@werple.net.au> > X-Authentication-Warning: werple.net.au: Ucimlogi set sender to cimaxp1!jb using -f > From: John Birrell > Subject: _thread_init stub in libc > To: julian@ref.tfs.com > Date: Wed, 6 Dec 1995 15:07:44 +1100 (EST) > Cc: jb@cimlogic.com.au > X-Mailer: ELM [version 2.4 PL23] > Content-Type: text > > Julian, > > >From the *crt0 code, we need to call _thread_init(). Since gcc likes to > >go get crt0, it doesn't make sense to have a separate set. We cannot force > >a programmer to the the *right* crt0 when linking against libc_r.a. > > To solve this, I'd like to add a sub for _thread_init() to the normal libc, > so that all applications use the same crt0 set regardless of whether or not > they are threaded. The overhead of calling _thread_init() when a program > starts shouldn't be a big deal. > > Regards, > > -- > John Birrell CIMlogic Pty Ltd > jb@cimlogic.com.au 119 Cecil Street > Ph +61 3 9690 9600 South Melbourne Vic 3205 > Fax +61 3 9690 6650 Australia > Mob +61 18 353 137 >