Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Dec 1995 23:18:26 -0800 (PST)
From:      Julian Elischer <julian@ref.tfs.com>
To:        hackers@freebsd.org
Subject:   _thread_init stub in libc (fwd) RFC
Message-ID:  <199512060718.XAA10573@ref.tfs.com>

next in thread | raw e-mail | index | archive | help
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 <cimaxp1!jb@werple.net.au>
> 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
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512060718.XAA10573>