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]

Re: __libc_ia64_register_backing_store_base


Richard Henderson <rth@redhat.com> writes:

> Doesn't LD_PRELOAD init code run first?

No.  The preloaded modules are added right after the executable in the
lookup path and are therefore initialized right before the application
(unless there are explit dependencies telling ld.so otherwise).

> Anyway, the GC library is used like malloc, and so _must_ be usable
> from constructors.  If you say it should defer collection until all
> constructors are run, fine.  The question then is: how should it know
> when all constructors are finished?  I don't know of any answer here.

The application startup code can signal this somehow.  Put something
in crtbegin. 

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


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