This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add _dl_init_first to elf/Versions


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   `------------------------

Attachment: signature.asc
Description: This is a digitally signed message part


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]