Date: Wed, 18 Oct 1995 09:46:30 +0100 From: Poul-Henning Kamp <phk@critter.tfs.com> To: Bruce Evans <bde@zeta.org.au> Cc: freebsd-hackers@FreeBSD.ORG, roberto@keltia.freenix.fr Subject: Re: crt0.c Message-ID: <190.814005990@critter.tfs.com> In-Reply-To: Your message of "Wed, 18 Oct 1995 16:40:12 %2B1000." <199510180640.QAA15271@godzilla.zeta.org.au>
next in thread | previous in thread | raw e-mail | index | archive | help
> >With all the talk about crt0.c, locale and friends, I just saw the > >following : > >[...] > >Why is it using "regular" getenv when it already has its own private one > >_getenv ? > > Because no one noticed that _getenv() existed when the locale bloat was > added. The private _getenv() is to avoid linking in whatever bloat may > be attached to getenv() (there actually isn't much). Similarly for all > the other private functions in crt0.c. Linking to to _startup_selocale() > defeats the point of most or all of these because there is a lot of bloat > attached to _startup_setlocale(). BZZZT!!! Wrong. The local functions, as well as the local syscall code is there so that it works before libc.so has been loaded. -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@ref.tfs.com TRW Financial Systems, Inc. Future will arrive by its own means, progress not so.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?190.814005990>