[PATCH] Add _dl_init_first to elf/Versions
Ulrich Drepper
drepper@redhat.com
Sun Apr 7 15:09:00 GMT 2002
On Sun, 2002-04-07 at 09:03, Jeroen Dekkers wrote:
> Sorry, maybe I wasn't clear. libc and ld have both there own version
> of _dl_init_first but in the Versions it's only in libc. This causes
> that the wrong _dl_init_first is called. It used to be there, but
> somehow got removed in revision 1.33 (and the changelog entry doesn't
> say so).
I've added some changes now but I really don't think that the concept of
_dl_init_first is good. The dependency ordering makes sure that the
libc constructor is run before an of the dependencies. This almost
always means it it run first. There are only two exceptions:
- if a DSO really doesn't use the libc. Which is fine
- if libpthread is used in which case a very minimal initialization is
executed (this isn't even an issue for Hurd right now)
It should be possible to eliminate the function.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20020407/7acee5c9/attachment.sig>
More information about the Libc-alpha
mailing list